repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(ci): silence linter
[poolifier.git]
/
examples
/
javascript
/
dynamicExample.cjs
diff --git
a/examples/javascript/dynamicExample.cjs
b/examples/javascript/dynamicExample.cjs
index a72ce3a6a6cd07e587686ce25c4c0083ce334aa8..ac361d08fd7e1913937ba84bd122f403da86bc0b 100644
(file)
--- a/
examples/javascript/dynamicExample.cjs
+++ b/
examples/javascript/dynamicExample.cjs
@@
-2,7
+2,7
@@
const {
DynamicThreadPool,
PoolEvents,
const {
DynamicThreadPool,
PoolEvents,
- availableParallelism
+ availableParallelism
,
} = require('poolifier')
const pool = new DynamicThreadPool(
} = require('poolifier')
const pool = new DynamicThreadPool(
@@
-11,7
+11,7
@@
const pool = new DynamicThreadPool(
'./yourWorker.js',
{
onlineHandler: () => console.info('worker is online'),
'./yourWorker.js',
{
onlineHandler: () => console.info('worker is online'),
- errorHandler: e => console.error(e)
+ errorHandler: e => console.error(e)
,
}
)
let poolFull = 0
}
)
let poolFull = 0