/** * Returns a new schedule that continues for as long the specified predicate * on the input evaluates to true. * * @tsplus static effect/core/io/Schedule.Aspects whileInput * @tsplus pipeable effect/core/io/Schedule whileInput */ export function whileInput(f: Predicate) { return ( self: Schedule ): Schedule => self.check((input, _) => f(input)) }