import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeed";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/repeatUntilEffect";
/**
 * Repeats this effect until its value satisfies the specified predicate or
 * until the first failure.
 *
 * @tsplus fluent ets/Effect repeatUntil
 */

export function repeatUntil_(self, p, __tsplusTrace) {
  return tsplus_module_2.repeatUntilEffect_(self, a => tsplus_module_1.succeed(() => p(a), __tsplusTrace), __tsplusTrace);
}
/**
 * Repeats this effect until its value satisfies the specified predicate or
 * until the first failure.
 *
 * @tsplus static ets/Effect/Aspects repeatUntil
 */

export const repeatUntil = (p, __tsplusTrace) => self => repeatUntil_(self, p, __tsplusTrace);
//# sourceMappingURL=repeatUntil.mjs.map