import { STMOnFailure } from "@effect/core/stm/STM/definition/primitives";
/**
 * Recovers from all errors.
 *
 * @tsplus fluent ets/STM catchAll
 */

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

export const catchAll = f => self => catchAll_(self, f);
//# sourceMappingURL=catchAll.mjs.map