Merge branch 'master' into add-worker-test
[poolifier.git] / tests / worker-files / thread / errorWorker.js
1 'use strict'
2 const { ThreadWorker, KillBehaviors } = 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: KillBehaviors.HARD
11 })