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