Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created December 29, 2020 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatilShreyas/02d2de862afa3b2587a0060ea9753200 to your computer and use it in GitHub Desktop.
Save PatilShreyas/02d2de862afa3b2587a0060ea9753200 to your computer and use it in GitHub Desktop.
fun main() = runBlocking {
launch {
delay(100)
println("Hello with delay 100")
}
launch {
delay(10)
println("Hello with delay 10")
}
launch {
delay(1)
println("Hello with delay 1")
}
println("Hello World!")
}
/* OUTPUT:
Hello World!
Hello with delay 1
Hello with delay 10
Hello with delay 100
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment