Merge branch 'master' into issue-70
[poolifier.git] / tests / worker / thread / errorWorker.js
1 'use strict'
2 const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index')
3
4 function error (data) {
5 throw new Error(data)
6 }
7
8 module.exports = new ThreadWorker(error, {
9 maxInactiveTime: 500,
10 killBehavior: killBehaviorEnumeration.HARD
11 })