Merge branch 'master' of github.com:jerome-benoit/poolifier
[poolifier.git] / tests / worker-files / thread / 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})