Commit | Line | Data |
---|---|---|
d35e5717 | 1 | import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs' |
106744f7 | 2 | |
b2fd3f4a JB |
3 | /** |
4 | * | |
5 | */ | |
fe2f6f84 | 6 | function error () { |
15d56315 | 7 | throw new Error('Error Message from ThreadWorker') |
106744f7 | 8 | } |
9 | ||
b2fd3f4a | 10 | export default new ThreadWorker(error, { |
cca3bb1a JB |
11 | killBehavior: KillBehaviors.HARD, |
12 | maxInactiveTime: 500 | |
4c35177b | 13 | }) |