toMutableList

suspend fun <E> ReceiveChannel<E>.toMutableList(): MutableList<E> (source)

Platform and version requirements: JVM

Returns a MutableList filled with all elements of this channel.

The operation is terminal. This function consumes all elements of the original ReceiveChannel.