From 8923de44ac3bec0089c863590d7b680b57523d61 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 22 Jul 2023 23:57:26 +0200 Subject: [PATCH] fix: execute() can have no arguments in examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- README.md | 2 +- examples/dynamicExample.js | 2 +- examples/fixedExample.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d63d0ad5..9f0fc3da 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ pool.emitter.on(PoolEvents.busy, () => console.info('Pool is busy')) // the execute method signature is the same for both implementations, // so you can easy switch from one to another pool - .execute({}) + .execute() .then(res => { console.info(res) }) diff --git a/examples/dynamicExample.js b/examples/dynamicExample.js index f36138ac..b8cbf49a 100644 --- a/examples/dynamicExample.js +++ b/examples/dynamicExample.js @@ -25,7 +25,7 @@ const start = performance.now() const iterations = 1000 for (let i = 1; i <= iterations; i++) { pool - .execute({}) + .execute() .then(() => { resolved++ if (resolved === iterations) { diff --git a/examples/fixedExample.js b/examples/fixedExample.js index 884ab59e..21ccf6c1 100644 --- a/examples/fixedExample.js +++ b/examples/fixedExample.js @@ -18,7 +18,7 @@ const start = performance.now() const iterations = 1000 for (let i = 1; i <= iterations; i++) { pool - .execute({}) + .execute() .then(() => { resolved++ if (resolved === iterations) { -- 2.34.1