fold

fun <B> fold(b: B, f: suspend (B, Output) -> B): Schedule<Input, B>(source)

Folds all the Output of the Schedule into a List. This is useful in combination with identity to fold all the Input into a final value B. If one of the Schedules is done, the other Schedule is not executed anymore.