import * as tsplus_module_1 from "@effect/core/stm/STM/operations/succeed";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/orElse";
/**
 * Tries this effect first, and if it fails or retries, succeeds with the
 * specified value.
 *
 * @tsplus fluent ets/STM orElseSucceed
 */

export function orElseSucceed_(self, a) {
  return tsplus_module_2.orElse_(self, () => tsplus_module_1.succeed(a));
}
/**
 * Tries this effect first, and if it fails or retries, succeeds with the
 * specified value.
 *
 * @tsplus static ets/STM/Aspects orElseSucceed
 */

export const orElseSucceed = a => self => orElseSucceed_(self, a);
//# sourceMappingURL=orElseSucceed.mjs.map