NonSuspendCollectorI
interface NonSuspendCollectorI<InternalAccumulator, in Value, out Result> : CollectorI<InternalAccumulator, Value, Result> (source)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Applies a function over each element in the data source, before giving it to the collector.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Performs additional work during the finalization phase, by applying a function to the end result.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <B, S> zip(other: NonSuspendCollectorI<B, @UnsafeVariance Value, S>): NonSuspendCollector<Value, Pair<Result, S>>
Combines two Collectors by performing the phases of each of them in parallel.
open fun <B, S, V> zip(other: CollectorI<B, Value, S>, combine: suspend (Result, S) -> V): Collector<Value, V>
Combines two Collectors by performing the phases of each of them in parallel, and then combining the end result in a final step.
Link copied to clipboard
open fun <B, S, V> zipNonSuspend(other: NonSuspendCollectorI<B, @UnsafeVariance Value, S>, combine: (Result, S) -> V): NonSuspendCollector<Value, V>
Combines two Collectors by performing the phases of each of them in parallel, and then combining the end result in a final step.