feat(benchmarks): add bencher threshold checks
[poolifier.git] / errorWorker.js
... / ...
CommitLineData
1'use strict'
2const { ThreadWorker, KillBehaviors } = require('../../../lib')
3
4function error () {
5 throw new Error('Error Message from ThreadWorker')
6}
7
8module.exports = new ThreadWorker(error, {
9 killBehavior: KillBehaviors.HARD,
10 maxInactiveTime: 500
11})