repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
docs: refine changelog entries
[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
})