MCPcopy Index your code
hub / github.com/Effect-TS/effect / fail

Function fail

packages/effect/src/internal/stm/core.ts:654–654  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

652
653/** @internal */
654export const fail = <E>(error: E): STM.STM<never, E> => failSync(() => error)
655
656/** @internal */
657export const failSync = <E>(evaluate: LazyArg<E>): STM.STM<never, E> => {

Callers 2

runMethod · 0.70
core.tsFile · 0.70

Calls 1

failSyncFunction · 0.70

Tested by

no test coverage detected