<@U0BUH9FRD> You can write it manually: ``` fun &l...
# coroutines
e
@sdeleuze You can write it manually:
Copy code
fun <T> ReceiveChannel<T>.toListAsync(): Deferred<List<T>> = 
    async { 
        ArrayList<T>().also { list ->
            consumeEach { list.add(it) }
        }
    }