MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / poolOf

Function poolOf

__tests__/parse-pool.test.ts:346–347  ·  view source on GitHub ↗
(worker: SlowLoadWorker, loadSettleMs?: number)

Source from the content-addressed store, hash-verified

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);

Callers 1

parse-pool.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected