refactor: use object destructuration at handling task execution response
[poolifier.git] / tests / worker-files / thread / errorWorker.js
index c33dc1f0eb5e7c454a8ae355fe0c997761c32c56..19785dc36152b694d16e62468504590f9e921cb2 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
 
 function error () {
   throw new Error('Error Message from ThreadWorker')
@@ -7,6 +7,5 @@ function error () {
 
 module.exports = new ThreadWorker(error, {
   maxInactiveTime: 500,
-  async: false,
   killBehavior: KillBehaviors.HARD
 })