import { STMEffect, STMFailException } from "@effect/core/stm/STM/definition/primitives" /** * Returns a value that models failure in the transaction. * * @tsplus static effect/core/stm/STM.Ops failSync */ export function failSync(e: LazyArg): STM { return new STMEffect(() => { throw new STMFailException(e()) }) }