Version: NextAbstractForkManager <Worker, ClusterOptions>
Methods
- bindWorkerDisconnect(listener: (worker: Worker) => void): void
- bindWorkerExit(listener: (worker: Worker, code: any, signal: any) => void): void
- closeWorker(worker: Worker): any
- createEventBus(eventBusOptions: EventBusOptions<Worker>): IEventBus<Worker>
- createWorker(oldWorker?: Worker): Worker
- getWorker(workerId: string): Worker
- getWorkerId(worker: Worker): string
- hasWorker(workerId: string): boolean
- isWorkerDead(worker: Worker): boolean
- onStop(exitListener: any): void
- stop(timeout?: number): Promise<void>