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

Method settle

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

Source from the content-addressed store, hash-verified

451 }
452
453 private settle(job: Job, result: ToolResult): void {
454 if (job.settled) return; // already answered (by backstop or worker)
455 job.settled = true;
456 if (job.softTimer) clearTimeout(job.softTimer);
457 job.resolve(result);
458 }
459
460 /** Run a read tool on the pool. Always resolves (never rejects). */
461 run(toolName: string, args: Record<string, unknown>): Promise<ToolResult> {

Callers 6

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

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected