toMap
Platform and version requirements: JVM
Returns a Map filled with all elements of this channel.
The operation is terminal. This function consumes all elements of the original ReceiveChannel.
suspend fun <K, V, M : MutableMap<in K, in V>> ReceiveChannel<Pair<K, V>>.toMap(
destination: M
): M
(source)Platform and version requirements: JVM
Returns a MutableMap filled with all elements of this channel.
The operation is terminal. This function consumes all elements of the original ReceiveChannel.