chore: v2.6.29
[poolifier.git] / tests / worker-files / thread / errorWorker.js
1 'use strict'
2 const { ThreadWorker, KillBehaviors } = require('../../../lib')
3
4 function error () {
5 throw new Error('Error Message from ThreadWorker')
6 }
7
8 module.exports = new ThreadWorker(error, {
9 maxInactiveTime: 500,
10 killBehavior: KillBehaviors.HARD
11 })