Colton Idle
suspend fun getTwoThingsInParrallel():List<String> { apiService.oneLongTwo() apiService.secondLongCall() ... //do something with the result }
CLOVIS
suspend fun foo(): List<String> { coroutineScope { listOf( async { apiService.onLongTwo() }, aynsc { apiService.secondLongCall() } ).awaitAll() } }
awaitAll
kevin.cianfarini
coroutineScope
async
launch
gildor
A modern programming language that makes developers happier.