repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge dependabot/npm_and_yarn/examples/typescript/websocket-server-pool/ws-hybrid...
[poolifier.git]
/
tests
/
worker-files
/
thread
/
echoWorker.mjs
1
import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
2
3
/**
4
*
5
* @param data
6
* @returns
7
*/
8
function echo (data) {
9
return data
10
}
11
12
export default new ThreadWorker(echo, {
13
killBehavior: KillBehaviors.HARD
14
})