In the structured concurrency example for Android ...
# coroutines
t
In the structured concurrency example for Android (https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/coroutines-guide-ui.md#structured-concurrency-lifecycle-and-coroutine-parent-child-hierarchy),
Dispatchers.Main
is added to the
job
to make it so the dispatcher used for child coroutine builders will be
Dispatchers.Main
(correct me if I'm wrong). Which dispatcher is used if the
+ Dispatchers.Main
portion is omitted?
Copy code
override val coroutineContext: CoroutineContext 
    get() = job
e
The default one is used by default
👌 1
t
That's what I speculated but it wasn't immediately obvious looking through the source code. Thanks for confirming!