Skip to content

Instantly share code, notes, and snippets.

@trix0
Created September 12, 2024 09:51
Show Gist options
  • Save trix0/4c07dd16f77723de327663387d6b2e99 to your computer and use it in GitHub Desktop.
Save trix0/4c07dd16f77723de327663387d6b2e99 to your computer and use it in GitHub Desktop.
Kotlin Coroutines & Flows Masterclass, Coroutine basics Assignment #1
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