refactor: cleanup cluster ESM issue workaround
[poolifier.git] / examples / dynamicExample.js
index f36138ac8085df0c07712f28150616dd7095a6f2..ad79ba20294135dfc4569f1795151ae24f8ea3fc 100644 (file)
@@ -1,3 +1,4 @@
+'use strict'
 const {
   DynamicThreadPool,
   PoolEvents,
@@ -25,7 +26,7 @@ const start = performance.now()
 const iterations = 1000
 for (let i = 1; i <= iterations; i++) {
   pool
-    .execute({})
+    .execute()
     .then(() => {
       resolved++
       if (resolved === iterations) {