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

Function dieSync

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

Source from the content-addressed store, hash-verified

525
526/** @internal */
527export const dieSync = (evaluate: LazyArg<unknown>): Layer.Layer<unknown> => failCauseSync(() => Cause.die(evaluate()))
528
529/** @internal */
530export const discard = <RIn, E, ROut>(self: Layer.Layer<ROut, E, RIn>): Layer.Layer<never, E, RIn> =>

Callers

nothing calls this directly

Calls 2

failCauseSyncFunction · 0.70
dieMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…