refactor: silence jsdoc linting warnings
[poolifier.git] / tests / worker-files / cluster / asyncWorker.cjs
... / ...
CommitLineData
1'use strict'
2const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
3const { sleepTaskFunction } = require('../../test-utils.cjs')
4
5/**
6 *
7 * @param data
8 */
9async function sleep (data) {
10 return sleepTaskFunction(data, 2000)
11}
12
13module.exports = new ClusterWorker(sleep, {
14 killBehavior: KillBehaviors.HARD,
15 maxInactiveTime: 500,
16})