check

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

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