repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
054c4bb30c2d8ef2ad2ed9dd52bc5c6f9af793e2
[poolifier.git]
/
tests
/
worker
/
cluster
/
echoWorker.js
1
'use strict'
2
const
{
ClusterWorker
,
KillBehaviors
} =
require
(
'../../../lib/index'
)
3
4
function
echo
(
data
) {
5
return
data
6
}
7
8
module
.
exports
=
new
ClusterWorker
(
echo
, {
9
maxInactiveTime
:
500
,
10
killBehavior
:
KillBehaviors
.
HARD
11
})