Last active
April 10, 2019 23:01
-
-
Save enginebai/ea3a7b20ba92c709af78d7c8b2e72525 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
zipApi1AndApi2() | |
.subscribeOn(Schedulers.io()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe { pair -> | |
if (pair.second.isSuccessful) | |
Logger.d(pair) | |
else | |
throw ApiRequestException(pair.second) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment