* Recycle every idle worker now (fresh WASM heaps). The orchestrator calls * this before its retry pass so crash-on-memory files get the cleanest heap.
()
| 435 | * this before its retry pass so crash-on-memory files get the cleanest heap. |
| 436 | */ |
| 437 | recycleAll(): void { |
| 438 | for (const w of [...this.idle]) this.recycle(w); |
| 439 | } |
| 440 | |
| 441 | /** Terminate all workers and reject any outstanding parses. */ |
| 442 | async destroy(): Promise<void> { |