Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-hybrid...
[poolifier.git] / tests / worker-files / thread / errorWorker.js
1 'use strict'
2 const { ThreadWorker, KillBehaviors } = require('../../../lib')
3
4 function error () {
5 throw new Error('Error Message from ThreadWorker')
6 }
7
8 module.exports = new ThreadWorker(error, {
9 killBehavior: KillBehaviors.HARD,
10 maxInactiveTime: 500
11 })