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

Function failSync

packages/effect/src/Channel.ts:987–987  ·  view source on GitHub ↗
(evaluate: LazyArg<E>)

Source from the content-addressed store, hash-verified

985 * @since 2.0.0
986 */
987export const failSync = <E>(evaluate: LazyArg<E>): Channel<never, E, never> => fromPull(Effect.failSync(evaluate))
988
989/**
990 * Constructs a channel that fails immediately with the specified `Cause`.

Callers

nothing calls this directly

Calls 1

fromPullFunction · 0.70

Tested by

no test coverage detected