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