mapNotNullTo
inline suspend fun <E, R : Any, C : MutableCollection<in R>> ReceiveChannel<E>.mapNotNullTo(
destination: C,
transform: (E) -> R?
): C
(source)Platform and version requirements: JVM
Applies the given transform function to each element in the original channel and appends only the non-null results to the given destination.
The operation is terminal. This function consumes all elements of the original ReceiveChannel.