MCPcopy Index your code
hub / github.com/Effect-TS/effect / fail

Function fail

packages/effect/src/internal/fiber.ts:108–108  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

106
107/** @internal */
108export const fail = <E>(error: E): Fiber.Fiber<never, E> => done(Exit.fail(error))
109
110/** @internal */
111export const failCause = <E>(cause: Cause.Cause<E>): Fiber.Fiber<never, E> => done(Exit.failCause(cause))

Callers

nothing calls this directly

Calls 2

doneFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected