X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FstaticExample.js;h=b9f7503fc8a4d656aa069f181c6ebdd679855d89;hb=2c24ec4530aa327b2a256f42d30ada10f3866331;hp=49dc02a54533254efb32466e944228375fccc653;hpb=c68d4281d92ef0da01fc89fb00a93d3a17ba392e;p=poolifier.git diff --git a/examples/staticExample.js b/examples/staticExample.js index 49dc02a5..b9f7503f 100644 --- a/examples/staticExample.js +++ b/examples/staticExample.js @@ -1,8 +1,9 @@ const FixedThreadPool = require('../lib/fixed') let resolved = 0 -const pool = new FixedThreadPool(15, - './yourWorker.js', - { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) +const pool = new FixedThreadPool(15, './yourWorker.js', { + errorHandler: e => console.error(e), + onlineHandler: () => console.log('worker is online') +}) const start = Date.now() const iterations = 1000