Created
October 25, 2018 11:47
-
-
Save abohomol/5a800529a9cfa91e1481e1bce5cd2e8c 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(UI) { | |
val service = ... | |
val profile = service.getProfile() // background thread | |
view.showUserName(profile.name) // UI thread | |
finalizeOnboarding() // background thread | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
launch(UI)
has been deprecated. UsecoroutineScope.launch(Dispathers.Main)
instead