import { STMDieException, STMEffect } from "@effect/core/stm/STM/definition/primitives" /** * Kills the fiber running the effect. * * @tsplus static effect/core/stm/STM.Ops dieSync */ export function dieSync(u: LazyArg): STM { return new STMEffect(() => { throw new STMDieException(u()) }) }