import * as tsplus_module_1 from "@effect/core/io/Layer/operations/catchAll";
/**
 * Executes this layer and returns its output, if it succeeds, but otherwise
 * executes the specified layer.
 *
 * @tsplus operator ets/Layer |
 * @tsplus fluent ets/Layer orElse
 */

export function orElse_(self, that) {
  return tsplus_module_1.catchAll_(self, that);
}
/**
 * Executes this layer and returns its output, if it succeeds, but otherwise
 * executes the specified layer.
 *
 * @tsplus static ets/Layer/Aspects orElse
 */

export const orElse = that => self => orElse_(self, that);
//# sourceMappingURL=orElse.mjs.map