Last active
August 29, 2015 14:06
-
-
Save dlew/680175f035de85af3e29 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
RetrofitService.doTheThing(params) // Your typical API call | |
.subscribeOn(Schedulers.io()) // Execute API call on IO thread | |
.observeOn(AndroidSchedulers.mainThread()) // Execute observers on Android's main thread | |
.subscribe(results -> handle(results)); // Handling the results of the API call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment