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

Function abortError

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

Source from the content-addressed store, hash-verified

211};
212
213const abortError = (signal: AbortSignal): unknown => {
214 if (signal.reason !== undefined) return signal.reason;
215 // oxlint-disable-next-line executor/no-error-constructor -- boundary: Fetch-compatible adapter must reject with an AbortError-shaped value
216 const error = new Error("The operation was aborted");
217 error.name = "AbortError";
218 return error;
219};
220
221/** An effect that completes when `signal` aborts (already-aborted = now). */
222const awaitAbort = (signal: AbortSignal): Effect.Effect<void> =>

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected