docs: refine changelog entries
[poolifier.git] / tests / worker-files / thread / testMultipleTaskFunctionsWorker.mjs
1 import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
2 import {
3 factorial,
4 fibonacci,
5 jsonIntegerSerialization
6 } from '../../test-utils.cjs'
7
8 export default new ThreadWorker(
9 {
10 jsonIntegerSerialization: data => jsonIntegerSerialization(data.n),
11 factorial: data => factorial(data.n),
12 fibonacci: data => fibonacci(data.n)
13 },
14 {
15 killBehavior: KillBehaviors.HARD,
16 maxInactiveTime: 500
17 }
18 )