MCPcopy Create free account
hub / github.com/Effect-TS/effect / onAbort

Function onAbort

packages/ui/native/src/NativeHttpClient.ts:273–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 const aborted = Effect.callback<never, HttpClientError.HttpClientError>(
272 (resume) => {
273 const onAbort = () => resume(Effect.fail(transportError(signal.reason)))
274 // The upload starts first, and may have closed the scope already.
275 if (signal.aborted) return onAbort()
276 signal.addEventListener("abort", onAbort)

Callers 1

Calls 3

transportErrorFunction · 0.70
failMethod · 0.65
resumeFunction · 0.50

Tested by

no test coverage detected