whileInput

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

Continues or stops the schedule based on the input.