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