Commit | Line | Data |
---|---|---|
106744f7 | 1 | 'use strict' |
1a81f8af | 2 | const { ThreadWorker, KillBehaviors } = require('../../../lib/index') |
106744f7 | 3 | |
4 | function error (data) { | |
5 | throw new Error(data) | |
6 | } | |
7 | ||
4c35177b | 8 | module.exports = new ThreadWorker(error, { |
9 | maxInactiveTime: 500, | |
7c0ba920 | 10 | async: false, |
1a81f8af | 11 | killBehavior: KillBehaviors.HARD |
4c35177b | 12 | }) |