1fd8d6797c62e1db75e362225e07958d4c5f9dd7
1 const { FixedClusterPool
} = require('../../../lib/index')
5 const fixedPool
= new FixedClusterPool(
7 './benchmarks/internal/cluster/worker.js'
10 async
function fixedClusterTest (
11 { tasks
, workerData
} = { tasks
: 1, workerData
: { proof
: 'ok' } }
13 return new Promise((resolve
, reject
) => {
15 for (let i
= 0; i
<= tasks
; i
++) {
20 if (executions
=== tasks
) {
21 return resolve('FINISH')
32 module
.exports
= { fixedClusterTest
}