1 import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
5 jsonIntegerSerialization,
6 } from '../../test-utils.cjs'
8 export default new ThreadWorker(
10 factorial: { taskFunction: data => factorial(data.n) },
11 fibonacci: { priority: -5, taskFunction: data => fibonacci(data.n) },
12 jsonIntegerSerialization: {
13 taskFunction: data => jsonIntegerSerialization(data.n),
17 killBehavior: KillBehaviors.HARD,