fix: execute() can have no arguments in examples
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Jul 2023 21:57:26 +0000 (23:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Jul 2023 21:57:26 +0000 (23:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
README.md
examples/dynamicExample.js
examples/fixedExample.js

index d63d0ad59f8c9a779a5c7be09f3560c8909207e0..9f0fc3dad2ab8bcb483a009c33efe13a3d0aac8a 100644 (file)
--- 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)
   })
index f36138ac8085df0c07712f28150616dd7095a6f2..b8cbf49ad298a96ed3ca1a3fd8e6c9c26b704682 100644 (file)
@@ -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) {
index 884ab59e33ea44a81241b89983f34f9135d623f7..21ccf6c1d227989e0b24d42807d5b0640ccbbaef 100644 (file)
@@ -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) {