Report more cleanups from work in progress PRs
[poolifier.git] / tests / worker-files / thread / longRunningWorkerSoftBehavior.js
CommitLineData
c01733f1 1'use strict'
2const { ThreadWorker } = require('../../../lib/index')
cf597bc5 3const TestUtils = require('../../test-utils')
c01733f1 4
5async function sleep (data) {
cf597bc5 6 return await TestUtils.workerSleepFunction(data, 50000)
c01733f1 7}
8
4c35177b 9module.exports = new ThreadWorker(sleep, {
10 maxInactiveTime: 500,
11 async: true
12})