effect-io-ai

Package: effect
Module: Schedule

Schedule.recurUntil

A schedule that recurs until the given predicate evaluates to true.

Details

This schedule will continue executing as long as the provided predicate f returns false for the input value. Once f evaluates to true, the schedule stops recurring.

This is useful for defining schedules that should stop when a certain condition is met, such as detecting a success state, reaching a threshold, or avoiding unnecessary retries.

See

Signature

declare const recurUntil: <A>(f: Predicate<A>) => Schedule<A, A>

Source

Since v2.0.0