"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.catchAll = void 0;
exports.catchAll_ = catchAll_;

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

/**
 * Recovers from all errors.
 *
 * @tsplus fluent ets/STM catchAll
 */
function catchAll_(self, f) {
  return new _primitives.STMOnFailure(self, f);
}
/**
 * Recovers from all errors.
 *
 * @tsplus static ets/STM/Aspects catchAll
 */


const catchAll = f => self => catchAll_(self, f);

exports.catchAll = catchAll;
//# sourceMappingURL=catchAll.js.map