X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fjavascript%2FyourWorker.js;h=cc462f7f97b1cde5a48712494a651fcf90f420fb;hb=e9665c436c5774e764c2ecbf927d32cd75092fed;hp=c21f911dc54a502490c3e4e5684af972f6180041;hpb=1c132fec1844432e7bfea1bd5d384a9880b91dbb;p=poolifier.git diff --git a/examples/javascript/yourWorker.js b/examples/javascript/yourWorker.js index c21f911d..cc462f7f 100644 --- a/examples/javascript/yourWorker.js +++ b/examples/javascript/yourWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { isMainThread } = require('worker_threads') +const { isMainThread } = require('node:worker_threads') const { ThreadWorker } = require('poolifier') const debug = false