X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FdynamicExample.js;fp=examples%2FdynamicExample.js;h=68c6b6f11f7d09536f754ca5c0ee7a4dedbd89c6;hb=75b44e22e0bc7bb88788c89cf9204f24c4a96360;hp=d483684de442ad97f6d721c316e0f20bb32eacbe;hpb=57df5469cb6f9ffd7c3501f026f2659b3cf88f06;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()