import { STMEffect, STMFailException } from "@effect/core/stm/STM/definition/primitives";
/**
 * Returns a value that models failure in the transaction.
 *
 * @tsplus static ets/STM/Ops failNow
 */

export function failNow(e) {
  return new STMEffect(() => {
    throw new STMFailException(e);
  });
}
//# sourceMappingURL=failNow.mjs.map