onState

fun onState(block: suspend PipelineContext<S, I, A>.(old: S, new: S) -> S?)

See also