2 const { ClusterWorker
, KillBehaviors
} = require('../../../lib')
4 jsonIntegerSerialization
,
7 } = require('../../test-utils')
9 module
.exports
= new ClusterWorker(
11 jsonIntegerSerialization
: data
=> jsonIntegerSerialization(data
.n
),
12 factorial
: data
=> factorial(data
.n
),
13 fibonacci
: data
=> fibonacci(data
.n
)
16 killBehavior
: KillBehaviors
.HARD
,