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
/
errorWorker.mjs
1
import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
2
3
/**
4
*
5
*/
6
function error () {
7
throw new Error('Error Message from ThreadWorker')
8
}
9
10
export default new ThreadWorker(error, {
11
killBehavior: KillBehaviors.HARD,
12
maxInactiveTime: 500
13
})