2 const { ThreadWorker
, KillBehaviors
} = require('../../../lib')
3 const { sleepWorkerFunction
} = require('../../test-utils')
5 async
function error (data
) {
6 return sleepWorkerFunction(
10 'Error Message from ThreadWorker:async'
14 module
.exports
= new ThreadWorker(error
, {
16 killBehavior
: KillBehaviors
.HARD