X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fjavascript%2FfixedExample.cjs;h=ac2c3bee4b3cfae4ef389a71093bf1850f1c4acc;hb=ed20267eeb81ac0fb4a3abb5d1bde586080c2671;hp=38e0c8afbe30a66e2ab66dba1a7a2d152d6d4b01;hpb=d35e571704515a8b729d3455e4784054f07c368f;p=poolifier.git diff --git a/examples/javascript/fixedExample.cjs b/examples/javascript/fixedExample.cjs index 38e0c8af..ac2c3bee 100644 --- a/examples/javascript/fixedExample.cjs +++ b/examples/javascript/fixedExample.cjs @@ -2,12 +2,12 @@ const { FixedThreadPool, PoolEvents, - availableParallelism + availableParallelism, } = require('poolifier') const pool = new FixedThreadPool(availableParallelism(), './yourWorker.cjs', { + onlineHandler: () => console.info('worker is online'), errorHandler: e => console.error(e), - onlineHandler: () => console.info('worker is online') }) let poolReady = 0 let poolBusy = 0