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