X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FdynamicExample.js;h=68c6b6f11f7d09536f754ca5c0ee7a4dedbd89c6;hb=eb8a1d33b6480bbde62e3524a4c0a2316e2c3389;hp=d483684de442ad97f6d721c316e0f20bb32eacbe;hpb=c68d4281d92ef0da01fc89fb00a93d3a17ba392e;p=poolifier.git diff --git a/examples/dynamicExample.js b/examples/dynamicExample.js index d483684d..68c6b6f1 100644 --- a/examples/dynamicExample.js +++ b/examples/dynamicExample.js @@ -1,7 +1,7 @@ const DynamicThreadPool = require('../lib/dynamic') let resolved = 0 let maxReached = 0 -const pool = new DynamicThreadPool(100, 200, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) +const pool = new DynamicThreadPool(10, 20, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) pool.emitter.on('FullPool', () => maxReached++) const start = Date.now()