From: aardizio Date: Mon, 1 Mar 2021 10:03:14 +0000 (+0100) Subject: Package lock to 2.0.0 and removing other full keywords X-Git-Tag: v2.0.0~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a72f2599850d4587fa5088721897fe256e1c2de1;p=poolifier.git Package lock to 2.0.0 and removing other full keywords --- diff --git a/README.md b/README.md index ec12e397..1ddad503 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ const pool = new DynamicThreadPool(10, 100, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) -pool.emitter.on('busy', () => console.log('Pool is full')) +pool.emitter.on('busy', () => console.log('Pool is busy')) // the execute method signature is the same for both implementations, // so you can easy switch from one to another diff --git a/examples/dynamicExample.js b/examples/dynamicExample.js index 66909d38..95b4f49a 100644 --- a/examples/dynamicExample.js +++ b/examples/dynamicExample.js @@ -16,7 +16,7 @@ for (let i = 0; i <= iterations; i++) { resolved++ if (resolved === iterations) { console.log('Time take is ' + (Date.now() - start)) - return console.log('The pool was full for ' + maxReached + ' times') + return console.log('The pool was busy for ' + maxReached + ' times') } return null }) diff --git a/package-lock.json b/package-lock.json index f7c00885..5c5b7481 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "poolifier", - "version": "2.0.0-beta.7", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": {