https://kotlinlang.org logo
#coroutines
Title
# coroutines
b

bjartek

01/10/2018, 8:21 PM
i often find myself writing the following like code /code runBlocking(threadPool) { someList.map{ async(threadPool) { doOperation(it)}}.map{it.await()}} is there some better way to write this? basically i have a list and i want to process each element in a a seperate coroutine but i want to specify the threadPool used
Also, you can easily write own extension function for such case
2 Views