Created
October 28, 2019 23:56
-
-
Save pencelab/5d2f5381f583d179591b9afd19cd43d5 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
suspend fun loadItems() { | |
showLoadingView() | |
val data = withContext(Dispatchers.IO) { | |
requestData() | |
} | |
hideLoadingView() | |
appendItemsToListView(data) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment