fun <T> CoroutineScope.flatten(channel: ReceiveChannel<Array<T>>): ReceiveChannel<T> = produce {
for (items in channel) {
for(item in items) send(item)
}
}
However there could be something already that i don't know...
l
Luis Munoz
03/06/2020, 10:13 PM
cool thanks!
b
bdawg.io
03/06/2020, 10:16 PM
If you're going to do other operators, you should consider using a