Slide 27
Slide 27 text
ରࡦ
coroutineScope {
try {
// Nested scope
val (user, series) = coroutineScope {
val user = async { fetchUser() }
val series = async { fetchSeries("12345") }
Pair(user, series)
}
doSomething(user.await(), series.await())
} catch (e: IOException) {
// show error
}
}