From: Jérôme Benoit Date: Sat, 22 Jul 2023 21:57:26 +0000 (+0200) Subject: fix: execute() can have no arguments in examples X-Git-Tag: v2.6.21~38 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8923de44ac3bec0089c863590d7b680b57523d61;p=poolifier.git fix: execute() can have no arguments in examples Signed-off-by: Jérôme Benoit --- 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) {