repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
build(deps-dev): apply updates
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
echoWorker.cjs
1
'use strict'
2
const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
3
4
/**
5
*
6
* @param data
7
*/
8
function echo (data) {
9
return data
10
}
11
12
module.exports = new ClusterWorker(echo, {
13
killBehavior: KillBehaviors.HARD,
14
})