repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements for #161 (#169)
[poolifier.git]
/
tests
/
worker
/
thread
/
echoWorker.js
diff --git
a/tests/worker/thread/echoWorker.js
b/tests/worker/thread/echoWorker.js
index 9471891ea0fd30a0d0740492ef6609ee3145e55c..071428c5bc5f1414b5e61718ccf605826480bf45 100644
(file)
--- a/
tests/worker/thread/echoWorker.js
+++ b/
tests/worker/thread/echoWorker.js
@@
-1,5
+1,5
@@
'use strict'
'use strict'
-const { ThreadWorker,
killBehaviorType
s } = require('../../../lib/index')
+const { ThreadWorker,
KillBehavior
s } = require('../../../lib/index')
function echo (data) {
return data
function echo (data) {
return data
@@
-7,5
+7,5
@@
function echo (data) {
module.exports = new ThreadWorker(echo, {
maxInactiveTime: 500,
module.exports = new ThreadWorker(echo, {
maxInactiveTime: 500,
- killBehavior:
killBehaviorType
s.HARD
+ killBehavior:
KillBehavior
s.HARD
})
})