Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlincoroutines basics launch asyncSingle-choice MCQ

In a `runBlocking` scope, what is the relationship between when the values are computed in this code?

runBlocking { val a = async { delay(1000); 1 } val b = async { delay(1000); 2 } val sum = a.await() + b.await() println(sum) }