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

Function failSync

packages/effect/src/internal/layer.ts:550–551  ·  view source on GitHub ↗
(evaluate: LazyArg<E>)

Source from the content-addressed store, hash-verified

548
549/** @internal */
550export const failSync = <E>(evaluate: LazyArg<E>): Layer.Layer<unknown, E> =>
551 failCauseSync(() => Cause.fail(evaluate()))
552
553/** @internal */
554export const failCause = <E>(cause: Cause.Cause<E>): Layer.Layer<unknown, E> => fromEffectContext(core.failCause(cause))

Callers 1

layer.tsFile · 0.70

Calls 2

failCauseSyncFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…