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

Interface ParsePoolWorker

src/extraction/parse-pool.ts:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 * built `dist/`.
38 */
39export interface ParsePoolWorker {
40 postMessage(msg: unknown): void;
41 terminate(): Promise<number> | void;
42 on(event: 'message', cb: (m: unknown) => void): void;
43 on(event: 'error', cb: (e: Error) => void): void;
44 on(event: 'exit', cb: (code: number) => void): void;
45}
46
47/** A single file to parse. `language` is resolved on the main thread (it holds
48 * the project's codegraph.json extension overrides) and handed to the worker. */

Callers 16

spawnOneMethod · 0.65
dispatchMethod · 0.65
constructorMethod · 0.65
sendMethod · 0.65
drainMethod · 0.65
closeMethod · 0.65
parse-worker.tsFile · 0.65
store-worker.tsFile · 0.65
onWorkerGoneMethod · 0.65
recycleMethod · 0.65
terminateSettledMethod · 0.65
onHardTimeoutMethod · 0.65

Implementers 3

FakeWorker__tests__/parse-pool.test.ts
SlowLoadWorker__tests__/parse-pool.test.ts
FakeWorker__tests__/worker-teardown.test.ts

Calls

no outgoing calls

Tested by

no test coverage detected