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
/
fixedExample.cjs
diff --git
a/examples/javascript/fixedExample.cjs
b/examples/javascript/fixedExample.cjs
index 38e0c8afbe30a66e2ab66dba1a7a2d152d6d4b01..ac2c3bee4b3cfae4ef389a71093bf1850f1c4acc 100644
(file)
--- a/
examples/javascript/fixedExample.cjs
+++ b/
examples/javascript/fixedExample.cjs
@@
-2,12
+2,12
@@
const {
FixedThreadPool,
PoolEvents,
const {
FixedThreadPool,
PoolEvents,
- availableParallelism
+ availableParallelism
,
} = require('poolifier')
const pool = new FixedThreadPool(availableParallelism(), './yourWorker.cjs', {
} = require('poolifier')
const pool = new FixedThreadPool(availableParallelism(), './yourWorker.cjs', {
+ onlineHandler: () => console.info('worker is online'),
errorHandler: e => console.error(e),
errorHandler: e => console.error(e),
- onlineHandler: () => console.info('worker is online')
})
let poolReady = 0
let poolBusy = 0
})
let poolReady = 0
let poolBusy = 0