Gopal S Akshintala
08/02/2020, 1:09 PMList<A>
and a fn suspend (A) -> B
, how can I apply this fn on the list in parallel?tseisel
08/02/2020, 1:31 PMcoroutineScope {
list.map {
async { transform(it) }
}.awaitAll()
}
Is one way to do it.Nick Johnson
08/02/2020, 6:48 PMAndrea Giuliano
08/02/2020, 7:45 PMlist.asFlow().collect { mySuspendingFunction(it) }
work in this case?Joffrey
08/03/2020, 8:51 AM