Freedom
11/28/2019, 9:23 PMPaul Woitaschek
11/28/2019, 9:24 PMimages.map { async { send(it) } }.awaitAll()
images.forEach { send(it) }
joeykaan
11/29/2019, 7:56 AMasync
blocks are being executed on. If you read this blog you will see why: https://kotlinexpertise.com/kotlin-coroutines-concurrency/. The async { send(it) }
will be concurrently but not necessary in parallel.Paul Woitaschek
11/29/2019, 8:30 AMwithContext(Dispatchers.Default)
vs async(Dispatchers.Default)
?joeykaan
11/29/2019, 8:33 AMFreedom
11/29/2019, 10:13 PM