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

Function failSync

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

Source from the content-addressed store, hash-verified

1018
1019/** @internal */
1020export const failSync = <E>(error: LazyArg<E>): Effect.Effect<never, E> => suspend(() => fail(internalCall(error)))
1021
1022/** @internal */
1023const void_: Effect.Effect<void> = succeed(void 0)

Callers 1

effect.tsFile · 0.70

Calls 2

failFunction · 0.70
suspendFunction · 0.50

Tested by

no test coverage detected