docs: update benchmarks vs. external pools
[poolifier.git] / tests / worker-files / thread / longRunningWorkerSoftBehavior.js
... / ...
CommitLineData
1'use strict'
2const { ThreadWorker } = require('../../../lib')
3const TestUtils = require('../../test-utils')
4
5async function sleep (data) {
6 return TestUtils.sleepWorkerFunction(data, 50000)
7}
8
9module.exports = new ThreadWorker(sleep, {
10 maxInactiveTime: 500,
11 async: true
12})