| 3 | const STRATEGIES = new Set([ 'roundrobin', 'random', 'leastbusy' ]); |
| 4 | |
| 5 | module.exports = class RpcWorkerPool { |
| 6 | constructor(path, size = 0, strategy = 'roundrobin') { |
| 7 | if (size === 0) this.size = CORES; // <1> |
| 8 | else if (size < 0) this.size = Math.max(CORES + size, 1); |
nothing calls this directly
no outgoing calls
no test coverage detected