/** * Returns an effect that models failure with the specified error. The moral * equivalent of `throw` for pure code. * * @tsplus static effect/core/io/Effect.Ops failSync */ export function failSync(error: LazyArg): Effect { return Effect.failCauseSync(Cause.fail(error())) }