import { STMEffect, STMInterruptException } from "@effect/core/stm/STM/definition/primitives" /** * Interrupts the fiber running the effect with the specified fiber id. * * @tsplus static effect/core/stm/STM.Ops interruptAs */ export function interruptAs(fiberId: FiberId): USTM { return new STMEffect(() => { throw new STMInterruptException(fiberId) }) }