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

Function fail

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

Source from the content-addressed store, hash-verified

1044 * @since 2.0.0
1045 */
1046export const fail = <E>(error: E): Channel<never, E, never> => fromPull(Effect.succeed(Effect.fail(error)))
1047
1048/**
1049 * Constructs a channel that fails immediately with the specified lazily

Callers 1

Channel.tsFile · 0.70

Calls 3

fromPullFunction · 0.70
failMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected