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

Function abortError

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

Source from the content-addressed store, hash-verified

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

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected