effect-io-ai

Package: effect
Module: Schedule

Schedule.untilInput

Returns a new schedule that stops execution when the given predicate on the input evaluates to true.

Details

This function modifies an existing schedule so that it continues executing only while the provided predicate returns false for incoming inputs. Once an input satisfies the condition, the schedule terminates immediately.

See

Signature

declare const untilInput: { <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