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