X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FyourWorker.js;h=7de9485ceb1a228075011e615fb802d7660185b4;hb=dab8c377b70fc962ec217f2aeb719842f9f94cd6;hp=3e59f3465db2269fbb4ed2827f3c048c6010a8b8;hpb=fd7ebd496ee8e1f95c6c1dc2af5153d73ec3daab;p=poolifier.git diff --git a/examples/yourWorker.js b/examples/yourWorker.js index 3e59f346..7de9485c 100644 --- a/examples/yourWorker.js +++ b/examples/yourWorker.js @@ -1,10 +1,10 @@ 'use strict' -const { ThreadWorker } = require('poolifier') const { isMainThread } = require('worker_threads') +const { ThreadWorker } = require('poolifier') const debug = false -function yourFunction (data) { +function yourFunction () { for (let i = 0; i <= 1000; i++) { const o = { a: i