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

A coroutine is launched with `launch(Dispatchers.Default)` and inside it calls `withContext(Dispatchers.IO) { ... }`. What happens to the dispatcher after `withContext` returns?

scope.launch(Dispatchers.Default) { doCpuWork() // A withContext(Dispatchers.IO) { doBlockingIo() // B } doMoreCpuWork() // C }