Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async _run() {
await this.whenInitialized();
cluster.setupMaster(this._masterOpts);
// TODO maybe run this after starting waitForAllWorkers
this.forEach(worker => worker.run());
await this.waitForAllWorkers('worker ready');
this.emit('running');
}