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

Function fail

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

Source from the content-addressed store, hash-verified

955 * @since 2.0.0
956 */
957export const fail = <E>(error: E): Channel<never, E, never> => fromPull(Effect.succeed(Effect.fail(error)))
958
959/**
960 * Constructs a channel that fails immediately with the specified lazily

Callers 1

Channel.tsFile · 0.70

Calls 3

fromPullFunction · 0.70
succeedMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected