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

Function abortError

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

Source from the content-addressed store, hash-verified

231};
232
233const abortError = (signal: AbortSignal): unknown => {
234 if (signal.reason !== undefined) return signal.reason;
235 // oxlint-disable-next-line executor/no-error-constructor -- boundary: Fetch-compatible adapter must reject with an AbortError-shaped value
236 const error = new Error("The operation was aborted");
237 error.name = "AbortError";
238 return error;
239};
240
241/** An effect that completes when `signal` aborts (already-aborted = now). */
242const awaitAbort = (signal: AbortSignal): Effect.Effect<void> =>

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected