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

Function fail

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

Source from the content-addressed store, hash-verified

2480
2481/** @internal */
2482export const fail = <E>(error: E): Stream.Stream<never, E> => fromEffectOption(Effect.fail(Option.some(error)))
2483
2484/** @internal */
2485export const failSync = <E>(evaluate: LazyArg<E>): Stream.Stream<never, E> =>

Callers 2

stream.tsFile · 0.70
fromReadableStreamByobFunction · 0.70

Calls 2

fromEffectOptionFunction · 0.85
failMethod · 0.65

Tested by

no test coverage detected