2 const { ThreadWorker
} = require('poolifier')
5 console
.log('Executing function 0')
6 return { data
: 'fn0 your input text was' + data
.text
}
10 console
.log('Executing function 1')
11 return { data
: 'fn1 your input text was' + data
.text
}
14 module
.exports
= new ThreadWorker({ fn0
, fn1
})