check

abstract fun <A : Input> check(pred: suspend (A, Output) -> Boolean): Schedule<A, Output>

Conditionally checks on both the input and the output whether or not to continue.