Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlincoroutine dispatchers contextSingle-choice MCQ

What is the relationship between the coroutine that runs the launch block and its parent's context in this code?

import kotlinx.coroutines.* val scope = CoroutineScope(Dispatchers.Default + CoroutineName("parent")) fun demo() { scope.launch(Dispatchers.IO) { // what context applies here? } }