repositories
/
poolifier.git
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/express-hybrid...
[poolifier.git]
/
tests
/
worker-files
/
thread
/
echoWorker.mjs
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
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
})