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

Function fail

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

Source from the content-addressed store, hash-verified

2473
2474/** @internal */
2475export const fail = <E>(error: E): Stream.Stream<never, E> => fromEffectOption(Effect.fail(Option.some(error)))
2476
2477/** @internal */
2478export 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