When I run the following code, the `Job from corou...
# coroutines
v
When I run the following code, the
Job from coroutine scope
is printed first, not
Job1
, why is that?
Copy code
fun main() = runBlocking<Unit> {
    launch {
        println("Job 1")
    }

    launch {
        println("Job 2")
    }

    launch {
        println("Job 3")
    }

    coroutineScope {
        launch {
            println("Job from launch inside coroutine scope")
        }

        println("Job from coroutine scope ")
    }
}
z
launch
enqueues the coroutine to start, and then returns. If you pass
start = UNDISPATCHED
to
launch
then the inside one will print first.