Created
June 7, 2022 19:33
-
-
Save jaozinfs/4224b45f9b7e4b69beaa7cb1786a4cc8 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 { | |
val job1 = launch { | |
delay(2000) | |
downloadData() | |
print("Completed Job 1") | |
} | |
val job2 = launch { | |
delay(2000) | |
syncUserDetails() | |
println("Completed Job 2") | |
} | |
joinAll(job1, job2) | |
println("Finish") | |
startAnimation() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment