repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: cleanup cluster ESM issue workaround
[poolifier.git]
/
examples
/
dynamicExample.js
diff --git
a/examples/dynamicExample.js
b/examples/dynamicExample.js
index f36138ac8085df0c07712f28150616dd7095a6f2..ad79ba20294135dfc4569f1795151ae24f8ea3fc 100644
(file)
--- 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) {