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

Function fail

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

Source from the content-addressed store, hash-verified

184 HttpClientError.HttpClientError
185 >((resume) => {
186 const fail = (cause: unknown) => resume(Effect.fail(transportError(cause)))
187 if (signal.aborted) return fail(signal.reason)
188 const device = fiber.getRef(Native.Device)
189 const networking = device.module("Networking")

Callers 7

sendFunction · 0.70
readyFunction · 0.70
streamMethod · 0.70
flushMethod · 0.70
subscriptionFunction · 0.50
listenForFunction · 0.50

Calls 3

transportErrorFunction · 0.70
failMethod · 0.65
resumeFunction · 0.50

Tested by

no test coverage detected