import * as tsplus_module_1 from "@effect/core/io/Schedule/operations/checkEffect";
/**
 * Returns a new schedule that continues for as long the specified effectful
 * predicate on the input evaluates to true.
 *
 * @tsplus fluent ets/Schedule whileInputEffect
 * @tsplus fluent ets/Schedule/WithState whileInputEffect
 */

export function whileInputEffect_(self, f) {
  return tsplus_module_1.checkEffect_(self, (input, _) => f(input));
}
/**
 * Returns a new schedule that continues for as long the specified effectful
 * predicate on the input evaluates to true.
 *
 * @tsplus static ets/Schedule/Aspects whileInputEffect
 */

export const whileInputEffect = f => self => whileInputEffect_(self, f);
//# sourceMappingURL=whileInputEffect.mjs.map