X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FdynamicExample.js;h=ad79ba20294135dfc4569f1795151ae24f8ea3fc;hb=4f19da609fa420ecf4f7cc6228be293eaa9d42eb;hp=f36138ac8085df0c07712f28150616dd7095a6f2;hpb=2431bdb4c2dc637169bf623a40fc6562f685e56e;p=poolifier.git diff --git a/examples/dynamicExample.js b/examples/dynamicExample.js index f36138ac..ad79ba20 100644 --- a/examples/dynamicExample.js +++ b/examples/dynamicExample.js @@ -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) {