'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
function error () {
throw new Error('Error Message from ThreadWorker')
}
module.exports = new ThreadWorker(error, {
- maxInactiveTime: 500,
- async: false,
- killBehavior: KillBehaviors.HARD
+ killBehavior: KillBehaviors.HARD,
+ maxInactiveTime: 500
})