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

Method settle

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

Source from the content-addressed store, hash-verified

283 }
284
285 private settle(job: Job, result: ToolResult): void {
286 if (job.settled) return; // already answered (by backstop or worker)
287 job.settled = true;
288 if (job.softTimer) clearTimeout(job.softTimer);
289 job.resolve(result);
290 }
291
292 /** Run a read tool on the pool. Always resolves (never rejects). */
293 run(toolName: string, args: Record<string, unknown>): Promise<ToolResult> {

Callers 4

onMessageMethod · 0.95
onWorkerGoneMethod · 0.95
runMethod · 0.95
destroyMethod · 0.95

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected