build(deps-dev): apply updates
[poolifier.git] / tests / worker-files / thread / longRunningWorkerSoftBehavior.mjs
... / ...
CommitLineData
1import { ThreadWorker } from '../../../lib/index.cjs'
2import { sleepTaskFunction } from '../../test-utils.cjs'
3
4/**
5 *
6 * @param data
7 * @returns
8 */
9async function sleep (data) {
10 return sleepTaskFunction(data, 50000)
11}
12
13export default new ThreadWorker(sleep, {
14 maxInactiveTime: 500
15})