Error handling and unit tests
[poolifier.git] / tests / workers / emptyWorker.js
1 'use strict'
2 const { ThreadWorker } = require('../../lib/workers')
3
4 function test (data) {
5 }
6
7 class MyWorker extends ThreadWorker {
8 constructor () {
9 super(test, { maxInactiveTime: 500 })
10 }
11 }
12
13 module.exports = new MyWorker()