effect-io-ai

Package: effect
Module: Schedule

Schedule.whileInput

Returns a new schedule that continues execution as long as the given predicate on the input is true.

Details

This function modifies an existing schedule so that it only continues execution while a specified predicate holds true for its input. If the predicate evaluates to false at any step, the schedule stops.

See

Signature

declare const whileInput: { <In>(f: Predicate<In>): <Out, R>(self: Schedule<Out, In, R>) => Schedule<Out, In, R>; <Out, In, R>(self: Schedule<Out, In, R>, f: Predicate<In>): Schedule<Out, In, R>; }

Source

Since v2.0.0