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