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

Method settle

src/extraction/parse-pool.ts:552–559  ·  view source on GitHub ↗
(job: ParseJob, result?: ExtractionResult, err?: Error)

Source from the content-addressed store, hash-verified

550 }
551
552 private settle(job: ParseJob, result?: ExtractionResult, err?: Error): void {
553 if (job.settled) return;
554 job.settled = true;
555 if (job.timer) clearTimeout(job.timer);
556 if (job.hardKillTimer) clearTimeout(job.hardKillTimer);
557 if (err) job.reject(err);
558 else job.resolve(result!);
559 }
560
561 /**
562 * Recycle every idle worker now (fresh WASM heaps). The orchestrator calls

Callers 6

onMessageMethod · 0.95
onWorkerGoneMethod · 0.95
onHardTimeoutMethod · 0.95
drainMethod · 0.95
destroyMethod · 0.95
loadSettledMethod · 0.45

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected