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

Function failSync

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

Source from the content-addressed store, hash-verified

1075 * @since 2.0.0
1076 */
1077export const failSync = <E>(evaluate: LazyArg<E>): Channel<never, E, never> => fromPull(Effect.failSync(evaluate))
1078
1079/**
1080 * 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