1 import { KillBehaviors, ThreadWorker } from '../../../lib/index.js'
2 import { sleepTaskFunction } from '../../test-utils.js'
8 async function error (data) {
9 return sleepTaskFunction(
13 'Error Message from ThreadWorker:async'
17 export default new ThreadWorker(error, {
18 killBehavior: KillBehaviors.HARD,