-
-
Save PatilShreyas/02d2de862afa3b2587a0060ea9753200 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
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