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

Function failCauseSync

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

Source from the content-addressed store, hash-verified

955 * @category constructors
956 */
957export const failCauseSync = <E>(evaluate: LazyArg<MicroCause<E>>): Micro<never, E> =>
958 suspend(() => failCause(evaluate()))
959
960/**
961 * 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