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

What does this code print, given that `async` here uses `start = CoroutineStart.LAZY`?

import kotlinx.coroutines.* suspend fun main() = coroutineScope { val d = async(start = CoroutineStart.LAZY) { println("computing") 42 } println("before") println(d.await()) }