Created
February 17, 2020 20:28
-
-
Save jorgecasariego/0d41272f9de40f4b69446707a22a6056 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
// Dispatchers.Main | |
suspend fun fetchDocs() { | |
// Dispatchers.Main | |
val result = get("developer.android.com") | |
// Dispatchers.Main | |
show(result) | |
} | |
// look at this in the next section | |
suspend fun get(url: String) = withContext(Dispatchers.IO){/*...*/} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment