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

Function fail

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

Source from the content-addressed store, hash-verified

805 * @since 2.0.0
806 */
807export const fail = <E>(error: E): Stream<never, E> => fromChannel(Channel.fail(error))
808
809/**
810 * Terminates with the specified lazily evaluated error.

Callers 2

loopFunction · 0.70
Stream.tsFile · 0.70

Calls 2

fromChannelFunction · 0.70
failMethod · 0.45

Tested by

no test coverage detected