build(examples): fix TS configuration for 5.2.x
[poolifier.git] / tests / worker-files / cluster / errorWorker.js
... / ...
CommitLineData
1'use strict'
2const { ClusterWorker, KillBehaviors } = require('../../../lib')
3
4function error () {
5 throw new Error('Error Message from ClusterWorker')
6}
7
8module.exports = new ClusterWorker(error, {
9 maxInactiveTime: 500,
10 killBehavior: KillBehaviors.HARD
11})