allan.conda
02/05/2021, 8:42 AMJavier
02/05/2021, 8:42 AMlaunch { getA() }
launch { getB() }
or
val jobA = launch { getA() }
val jobB = launch { getB() }
joinAll(a, b)
allan.conda
02/05/2021, 8:44 AMJavier
02/05/2021, 9:02 AMJavier
02/05/2021, 9:02 AMallan.conda
02/05/2021, 9:50 AMdeferredA
and deferredB
seems too redundant. I’m wondering if something like this is possible
val (a, b) = (async { getA() } to async { getB() }).awaitAll()
looking for a more concise way to represent simultaneous async calls