<@U0AAQKT9Q> The `main` would terminate before all...
# coroutines
s
@ilya.gorbunov The
main
would terminate before all outputs can be observed. I get what you mean though and updated it to:
Copy code
runBlocking(CommonPool) { //(1)
    val job = launch(CommonPool) {
        sendEmailSuspending() //(2)
        println("Email sent successfully.")
    }
    job.join() //(9)
    println("Finished")
}
Now we want to do something after the email was sent which makes join reasonable. All right?