f5f36ed88b82cbfef176e0cbdb1d9969d9a7af1c
2 const { ThreadWorker
} = require('../../../lib/index')
4 function yourFunction (data
) {
5 for (let i
= 0; i
< 1000; i
++) {
11 // console.log('This is the main thread ' + isMainThread)
15 module
.exports
= new ThreadWorker(yourFunction
)