The worker's grammar load is over: it reported ready, errored or exited.
(w: ParsePoolWorker)
| 436 | |
| 437 | /** The worker's grammar load is over: it reported ready, errored or exited. */ |
| 438 | private loadSettled(w: ParsePoolWorker): void { |
| 439 | const load = this.loads.get(w); |
| 440 | if (!load) return; |
| 441 | this.loads.delete(w); |
| 442 | load.settle(); |
| 443 | } |
| 444 | |
| 445 | /** |
| 446 | * Terminate a worker, but not while it is still loading grammars: wait for |