Implementation for killBehavior based on the last feedbacks
[poolifier.git] / tests / worker / thread / echoWorker.js
CommitLineData
106744f7 1'use strict'
4c35177b 2const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index')
106744f7 3
4function echo (data) {
5 return data
6}
7
4c35177b 8module.exports = new ThreadWorker(echo, {
9 maxInactiveTime: 500,
10 killBehavior: killBehaviorEnumeration.HARD
11})