Merge dependabot/npm_and_yarn/typescript-eslint/parser-6.7.5 into combined-prs-branch
[poolifier.git] / tests / worker-files / cluster / asyncWorker.js
CommitLineData
7784f548 1'use strict'
cdace0e5 2const { ClusterWorker, KillBehaviors } = require('../../../lib')
2eb14889 3const { sleepTaskFunction } = require('../../test-utils.js')
7784f548 4
5async function sleep (data) {
dbca3be9 6 return sleepTaskFunction(data, 2000)
7784f548 7}
8
4c35177b 9module.exports = new ClusterWorker(sleep, {
cca3bb1a
JB
10 killBehavior: KillBehaviors.HARD,
11 maxInactiveTime: 500
4c35177b 12})