/** * Tries this effect first, and if it fails or retries, fails with the * specified error. * * @tsplus static effect/core/stm/STM.Aspects orElseFail * @tsplus pipeable effect/core/stm/STM orElseFail */ export function orElseFail(e: LazyArg) { return (self: STM): STM => self | STM.failSync(e) }