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

Function fail

packages/effect/src/Stream.ts:898–898  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

896 * @since 2.0.0
897 */
898export const fail = <E>(error: E): Stream<never, E> => fromChannel(Channel.fail(error))
899
900/**
901 * Terminates with the specified lazily evaluated error.

Callers 2

loopFunction · 0.70
Stream.tsFile · 0.70

Calls 2

fromChannelFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected