"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.failNow = failNow;

var _primitives = /*#__PURE__*/require("@effect/core/stm/STM/definition/primitives");

/**
 * Returns a value that models failure in the transaction.
 *
 * @tsplus static ets/STM/Ops failNow
 */
function failNow(e) {
  return new _primitives.STMEffect(() => {
    throw new _primitives.STMFailException(e);
  });
}
//# sourceMappingURL=failNow.js.map