whileOutput

fun whileOutput(f: suspend (Output) -> Boolean): Schedule<Input, Output>

Continues or stops the schedule based on the output.