Created
June 3, 2023 11:29
-
-
Save omkar-tenkale/0dcd32c82bb4959342146f352b642434 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
launch(Dispatcher.Main){ | |
println("Download Started") | |
// launch(Dispatcher.Background) | |
withContext(Dispatcher.Background) { | |
println("Download in progress") | |
downloader.download() | |
} | |
println("Download Complete") | |
} | |
// Output | |
Download Started | |
Download in progress | |
Download Complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment