repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
build(deps-dev): bump @rollup/plugin-typescript
[poolifier.git]
/
tests
/
worker-files
/
thread
/
errorWorker.mjs
1
import { KillBehaviors, ThreadWorker } from '../../../lib/index.js'
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
})