Created
February 19, 2020 00:49
-
-
Save jorgecasariego/2686abe345bd3a0098725ed6612bd1a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() = runBlocking { | |
println("Start") | |
hello() | |
println("Done") | |
} | |
suspend fun hello() = coroutineScope { | |
launch { | |
delay(1000L) | |
println("Hello") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment