(worker: SlowLoadWorker, loadSettleMs?: number)
| 344 | // process with an access violation (0xC0000005) on Windows; a pool torn down |
| 345 | // right after a short index often has a late-spawned worker in that state. |
| 346 | const poolOf = (worker: SlowLoadWorker, loadSettleMs?: number) => |
| 347 | new ParseWorkerPool({ languages: ['typescript'] as Language[], size: 1, createWorker: () => worker, loadSettleMs }); |
| 348 | |
| 349 | it('waits for a loading worker to finish before terminating it', async () => { |
| 350 | const w = new SlowLoadWorker(120); |