zip
open fun <B, S> zip(other: CollectorI<B, @UnsafeVariance Value, S>): Collector<Value, Pair<Result, S>>(source)
Combines two Collectors by performing the phases of each of them in parallel.
Parameters
other
Collector to combine with this
open fun <B, S, V> zip(other: CollectorI<B, @UnsafeVariance Value, S>, combine: suspend (Result, S) -> V): Collector<Value, V>(source)
Combines two Collectors by performing the phases of each of them in parallel, and then combining the end result in a final step.
Parameters
other
Collector to combine with this
combine
Function that combines the end results