From a72f2599850d4587fa5088721897fe256e1c2de1 Mon Sep 17 00:00:00 2001 From: aardizio Date: Mon, 1 Mar 2021 11:03:14 +0100 Subject: [PATCH] Package lock to 2.0.0 and removing other full keywords --- README.md | 2 +- examples/dynamicExample.js | 2 +- package-lock.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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": { -- 2.34.1