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

Function failCauseSync

packages/effect/src/Micro.ts:958–959  ·  view source on GitHub ↗
(evaluate: LazyArg<MicroCause<E>>)

Source from the content-addressed store, hash-verified

956 * @category constructors
957 */
958export const failCauseSync = <E>(evaluate: LazyArg<MicroCause<E>>): Micro<never, E> =>
959 suspend(() => failCause(evaluate()))
960
961/**
962 * Creates a `Micro` effect that will die with the specified error.

Callers

nothing calls this directly

Calls 2

suspendFunction · 0.70
failCauseFunction · 0.50

Tested by

no test coverage detected