X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2FyourWorker.js;h=b2df8d19093527e0ca67a24f9f84589ab1207050;hb=67e8ef11907ab8ae70740d7c9f4d5d225ed8d522;hp=5bd1ad6569c212b560d3eb829352f8974417b4a3;hpb=7a6a0a967f5d0978d7ad0714616194fe7592f69a;p=poolifier.git diff --git a/examples/yourWorker.js b/examples/yourWorker.js index 5bd1ad65..b2df8d19 100644 --- a/examples/yourWorker.js +++ b/examples/yourWorker.js @@ -1,6 +1,6 @@ 'use strict' -const { ThreadWorker } = require('poolifier') const { isMainThread } = require('worker_threads') +const { ThreadWorker } = require('poolifier') const debug = false @@ -11,7 +11,7 @@ function yourFunction () { } JSON.stringify(o) } - debug === true && console.log('This is the main thread ' + isMainThread) + debug === true && console.info('This is the main thread ' + isMainThread) return { ok: 1 } }