feat: add axios to http-client TS code example
[poolifier.git] / examples / fixedExample.js
index 884ab59e33ea44a81241b89983f34f9135d623f7..1f5ac4ea4e19f52ec474de4c12c6ed314f78704e 100644 (file)
@@ -1,3 +1,4 @@
+'use strict'
 const {
   FixedThreadPool,
   PoolEvents,
@@ -18,7 +19,7 @@ const start = performance.now()
 const iterations = 1000
 for (let i = 1; i <= iterations; i++) {
   pool
-    .execute({})
+    .execute()
     .then(() => {
       resolved++
       if (resolved === iterations) {