method IWorkerPool.shutdown
IWorkerPool.shutdown(): Promise<void>

Terminates every worker in every pool and rejects pending tasks. Called by the plugin's onClose hook; safe to call more than once.

Return Type

Promise<void>

Usage

import { type IWorkerPool } from "common/src/index.ts";