MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / abortForTimeout

Function abortForTimeout

packages/plugins/mcp/src/sdk/invoke.ts:80–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 };
79
80 const abortForTimeout = (): void => {
81 timer = undefined;
82 startedAt = undefined;
83 // oxlint-disable-next-line executor/no-error-constructor -- boundary: AbortSignal consumers need a stable timeout reason
84 controller.abort(new Error("MCP tool invocation exceeded its active-work deadline"));
85 };
86
87 const startTimer = (): void => {
88 if (controller.signal.aborted || pendingElicitations > 0) return;

Callers 1

startTimerFunction · 0.85

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected