-
-
Save minakov/51773f87334c29b66a1b 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