Created
November 29, 2020 19:48
-
-
Save Shivamdhuria/0dc4a5bccf7a175c5b2a6f74be4b654f 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
@AnyThread | |
private suspend fun longNetworkOperation(request: String): String = | |
withContext(Dispatchers.Default) { | |
delay(1000) | |
"Pseudo network delay of 3s delay: $request" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment