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