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

Function fail

packages/effect/src/Micro.ts:865–865  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

863 * @category constructors
864 */
865export const fail = <E>(error: E): Micro<never, E> => failCause(causeFail(error))
866
867/**
868 * Creates a `Micro` effect that succeeds with a lazily evaluated value.

Callers 7

failSyncFunction · 0.70
fromOptionFunction · 0.70
fromEitherFunction · 0.70
try_Function · 0.70
tryPromiseFunction · 0.70
Micro.tsFile · 0.70
[evaluate]Function · 0.70

Calls 2

causeFailFunction · 0.85
failCauseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…