docs: add changelog entry
[poolifier.git] / tests / worker-files / thread / errorWorker.mjs
CommitLineData
d35e5717 1import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
106744f7 2
b2fd3f4a
JB
3/**
4 *
5 */
fe2f6f84 6function error () {
15d56315 7 throw new Error('Error Message from ThreadWorker')
106744f7 8}
9
b2fd3f4a 10export default new ThreadWorker(error, {
cca3bb1a
JB
11 killBehavior: KillBehaviors.HARD,
12 maxInactiveTime: 500
4c35177b 13})