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

Function abortError

packages/plugins/mcp/src/sdk/connection.ts:113–119  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

111};
112
113const abortError = (signal: AbortSignal): unknown => {
114 if (signal.reason !== undefined) return signal.reason;
115 // oxlint-disable-next-line executor/no-error-constructor -- boundary: Fetch-compatible adapter must reject with an AbortError-shaped value
116 const error = new Error("The operation was aborted");
117 error.name = "AbortError";
118 return error;
119};
120
121const fetchFromHttpClientLayer = (
122 httpClientLayer: Layer.Layer<HttpClient.HttpClient>,

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected