Created
April 5, 2018 16:08
-
-
Save nanlabsweb/c5951b3338647e37018e055761ef2371 to your computer and use it in GitHub Desktop.
Light Weight Thread Example
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
syncPets.setOnClickListener({ | |
launch(UI) { | |
syncPets.isEnabled = false | |
val message = petViewModel.syncPets() | |
Toast.makeText(baseContext, message, Toast.LENGTH_LONG).show() | |
syncPets.isEnabled = true | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment