like this? ``` suspend fun <T> ReceiveChanne...
# coroutines
o
like this?
Copy code
suspend fun <T> ReceiveChannel<T>.toList() = ArrayList<T>().also { list -> consumeEach { list.add(it) } }