repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4b7c15004d72b9e0a18d3e256d789e76156e0974
[poolifier.git]
/
tests
/
worker-files
/
thread
/
longRunningWorkerSoftBehavior.mjs
1
import { ThreadWorker } from '../../../lib/index.cjs'
2
import { sleepTaskFunction } from '../../test-utils.cjs'
3
4
/**
5
*
6
* @param data
7
* @returns
8
*/
9
async function sleep (data) {
10
return sleepTaskFunction(data, 50000)
11
}
12
13
export default new ThreadWorker(sleep, {
14
maxInactiveTime: 500
15
})