Created
September 12, 2024 09:51
-
-
Save trix0/4c07dd16f77723de327663387d6b2e99 to your computer and use it in GitHub Desktop.
Kotlin Coroutines & Flows Masterclass, Coroutine basics Assignment #1
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
GlobalScope.launch { | |
repeat(4){ | |
delay(1000) | |
println("Coo") | |
} | |
} | |
GlobalScope.launch { | |
repeat(4){ | |
delay(2000) | |
println("Caw") | |
} | |
} | |
GlobalScope.launch { | |
repeat(4){ | |
delay(3000) | |
println("Chirp") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment