* 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.
()
| 563 | * this before its retry pass so crash-on-memory files get the cleanest heap. |
| 564 | */ |
| 565 | recycleAll(): void { |
| 566 | for (const w of [...this.idle]) this.recycle(w); |
| 567 | } |
| 568 | |
| 569 | /** Terminate all workers and reject any outstanding parses. */ |
| 570 | async destroy(): Promise<void> { |