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

Method settle

src/mcp/query-pool.ts:485–490  ·  view source on GitHub ↗
(job: Job, result: ToolResult)

Source from the content-addressed store, hash-verified

483 }
484
485 private settle(job: Job, result: ToolResult): void {
486 if (job.settled) return; // already answered (by backstop or worker)
487 job.settled = true;
488 if (job.softTimer) clearTimeout(job.softTimer);
489 job.resolve(result);
490 }
491
492 /** Run a read tool on the pool. Always resolves (never rejects). */
493 run(toolName: string, args: Record<string, unknown>): Promise<ToolResult> {

Callers 6

onMessageMethod · 0.95
onWorkerGoneMethod · 0.95
answerBusyMethod · 0.95
destroyMethod · 0.95
retiredMethod · 0.45
startSettledMethod · 0.45

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected