MCPcopy
hub / github.com/Effect-TS/effect / failSync

Function failSync

packages/effect/src/Micro.ts:982–982  ·  view source on GitHub ↗
(error: LazyArg<E>)

Source from the content-addressed store, hash-verified

980 * @category constructors
981 */
982export const failSync = <E>(error: LazyArg<E>): Micro<never, E> => suspend(() => fail(error()))
983
984/**
985 * Converts an `Option` into a `Micro` effect, that will fail with

Callers

nothing calls this directly

Calls 3

suspendFunction · 0.70
failFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected