X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FfixedExample.js;h=1f5ac4ea4e19f52ec474de4c12c6ed314f78704e;hb=23a6c28d3cc6edb778653a4d9d9a4d36f9a961c3;hp=884ab59e33ea44a81241b89983f34f9135d623f7;hpb=2431bdb4c2dc637169bf623a40fc6562f685e56e;p=poolifier.git diff --git a/examples/fixedExample.js b/examples/fixedExample.js index 884ab59e..1f5ac4ea 100644 --- a/examples/fixedExample.js +++ b/examples/fixedExample.js @@ -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) {