repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e9f20ab8e5101120d7f51459bf338676208f404f
[poolifier.git]
/
tests
/
worker-files
/
thread
/
errorWorker.js
1
'use strict'
2
const
{
ThreadWorker
,
KillBehaviors
} =
require
(
'../../../lib/index'
)
3
4
function
error
(
data
) {
5
throw new
Error
(
data
)
6
}
7
8
module
.
exports
=
new
ThreadWorker
(
error
, {
9
maxInactiveTime
:
500
,
10
killBehavior
:
KillBehaviors
.
HARD
11
})