test: switch thread worker to ESM
[poolifier.git] / tests / worker-files / thread / echoWorker.mjs
1 import { KillBehaviors, ThreadWorker } from '../../../lib/index.js'
2
3 /**
4 *
5 * @param data
6 */
7 function echo (data) {
8 return data
9 }
10
11 export default new ThreadWorker(echo, {
12 killBehavior: KillBehaviors.HARD
13 })