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

Two children are started with async inside a coroutineScope. One throws after a delay. What is the observable effect?

suspend fun run() = coroutineScope { val a = async { delay(100); 1 } val b = async { delay(50); throw RuntimeException("boom") } a.await() + b.await() }