build(deps-dev): bump @types/node
[poolifier.git] / tests / worker-files / thread / errorWorker.js
CommitLineData
106744f7 1'use strict'
cdace0e5 2const { ThreadWorker, KillBehaviors } = require('../../../lib')
106744f7 3
fe2f6f84 4function error () {
15d56315 5 throw new Error('Error Message from ThreadWorker')
106744f7 6}
7
4c35177b 8module.exports = new ThreadWorker(error, {
cca3bb1a
JB
9 killBehavior: KillBehaviors.HARD,
10 maxInactiveTime: 500
4c35177b 11})