docs: cleanup async usage in worker
[poolifier.git] / tests / worker-files / thread / errorWorker.js
CommitLineData
106744f7 1'use strict'
1a81f8af 2const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
106744f7 3
fe2f6f84 4function error () {
15d56315 5 throw new Error('Error Message from ThreadWorker')
106744f7 6}
7
4c35177b 8module.exports = new ThreadWorker(error, {
9 maxInactiveTime: 500,
1a81f8af 10 killBehavior: KillBehaviors.HARD
4c35177b 11})