method WorkerPoolService.prototype.shutdown
WorkerPoolService.prototype.shutdown(): Promise<void>

Shuts down every pool (terminating workers, rejecting pending tasks). Safe to call more than once.

Return Type

Promise<void>

Usage

import { WorkerPoolService } from "worker-pool-plugin/src/index.ts";