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

Function abortError

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

Source from the content-addressed store, hash-verified

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

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected