// ets_tracing: off import { succeed, tryOrElse_ } from "./core.js" import type { Effect } from "./effect.js" /** * Executes this effect and returns its value, if it succeeds, but * otherwise executes the specified effect. */ export function orElse_( self: Effect, that: () => Effect, __trace?: string ) { return tryOrElse_(self, that, succeed, __trace) } /** * Executes this effect and returns its value, if it succeeds, but * otherwise executes the specified effect. * * @ets_data_first orElse_ */ export function orElse(that: () => Effect, __trace?: string) { return (self: Effect) => orElse_(self, that, __trace) }