repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
build: avoid npx prompt at pnpm i
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
echoWorker.js
1
'use strict'
2
const
{
ClusterWorker
,
KillBehaviors
} =
require
(
'../../../lib'
)
3
4
function
echo
(
data
) {
5
return
data
6
}
7
8
module
.
exports
=
new
ClusterWorker
(
echo
, {
9
killBehavior
:
KillBehaviors
.
HARD
10
})