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