Improvements based on https://github.com/pioardi/poolifier/issues/6
[poolifier.git] / tests / workers / errorWorker.js
1 'use strict'
2 const { ThreadWorker } = require('../../lib/workers')
3
4 function error (data) {
5 throw new Error(data)
6 }
7
8 module.exports = new ThreadWorker(error, { maxInactiveTime: 500 })