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

Function abortError

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

Source from the content-addressed store, hash-verified

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

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected