Created
September 24, 2016 09:34
-
-
Save miquelbeltran/c9133976cad02bd960343cf427e3b01d 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
// Request API data on IO Scheduler | |
service.getWeather("Berlin", getString(R.string.api_key)) | |
.subscribeOn(Schedulers.io()) | |
// Read results in Android Main Thread (UI) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(this::display, this::processError); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment