// ets_tracing: off import type * as C from "../core.js" import * as Fail from "./fail.js" import * as OrElse from "./orElse.js" /** * Fails with given error in case this one fails with a typed error. * * See also `Stream#catchAll`. */ export function orElseFail_( self: C.Stream, e1: () => E1 ): C.Stream { return OrElse.orElse_(self, Fail.fail(e1())) } /** * Fails with given error in case this one fails with a typed error. * * See also `Stream#catchAll`. * * @ets_data_first orElseFail_ */ export function orElseFail(e1: () => E1) { return (self: C.Stream) => orElseFail_(self, e1) }