"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.orElse = exports.orElse_ = void 0;
// ets_tracing: off
const catchAll_1 = require("./catchAll");
/**
 * Switches to the provided stream in case this one fails with a typed error.
 *
 * See also `Stream#catchAll`.
 */
function orElse_(self, that) {
    return (0, catchAll_1.catchAll_)(self, (_) => that);
}
exports.orElse_ = orElse_;
/**
 * Switches to the provided stream in case this one fails with a typed error.
 *
 * See also `Stream#catchAll`.
 */
function orElse(that) {
    return (self) => orElse_(self, that);
}
exports.orElse = orElse;
//# sourceMappingURL=orElse.js.map