repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.4.3
[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 006bf97cd390f59f2c5bd37c28a2bfbb307a889b..cfe9427bdf6fa44c684a5861e18d81d1905aae42 100644
(file)
--- a/
tests/worker-files/thread/echoWorker.js
+++ b/
tests/worker-files/thread/echoWorker.js
@@
-1,8
+1,10
@@
'use strict'
'use strict'
-const { ThreadWorker } = require('../../../lib/index')
+const { ThreadWorker
, KillBehaviors
} = require('../../../lib/index')
function echo (data) {
return data
}
function echo (data) {
return data
}
-module.exports = new ThreadWorker(echo, { maxInactiveTime: 500 })
+module.exports = new ThreadWorker(echo, {
+ killBehavior: KillBehaviors.HARD
+})