Created
June 5, 2017 03:30
-
-
Save kalvian1060/c124072dd7d5d88b69ebd5111119144f 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
RxOkhttp.streamLines(client, request) | |
.subscribeOn(Schedulers.io()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(response -> { | |
// if response done do next download bla bla bla | |
}, throwable -> { | |
// if response failed do try again | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment