X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2FdynamicExample.js;fp=dynamicExample.js;h=d483684de442ad97f6d721c316e0f20bb32eacbe;hb=c68d4281d92ef0da01fc89fb00a93d3a17ba392e;hp=11032a92fdf280b9816091e163c868d7597fd366;hpb=a63eb03c3a3ddaf0c2cc938458c7958352d02f94;p=poolifier.git diff --git a/dynamicExample.js b/examples/dynamicExample.js similarity index 91% rename from dynamicExample.js rename to examples/dynamicExample.js index 11032a92..d483684d 100644 --- a/dynamicExample.js +++ b/examples/dynamicExample.js @@ -1,4 +1,4 @@ -const DynamicThreadPool = require('./lib/dynamic') +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') })