repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: generate documentation
[poolifier.git]
/
tests
/
worker-files
/
thread
/
echoWorker.js
diff --git
a/tests/worker-files/thread/echoWorker.js
b/tests/worker-files/thread/echoWorker.js
index 071428c5bc5f1414b5e61718ccf605826480bf45..998e56b20b108899fadd7000b414885dcd4c33b6 100644
(file)
--- a/
tests/worker-files/thread/echoWorker.js
+++ b/
tests/worker-files/thread/echoWorker.js
@@
-1,11
+1,10
@@
'use strict'
'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib
/index
')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
function echo (data) {
return data
}
module.exports = new ThreadWorker(echo, {
function echo (data) {
return data
}
module.exports = new ThreadWorker(echo, {
- maxInactiveTime: 500,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})