Skip to content

Instantly share code, notes, and snippets.

@enginebai
Last active April 10, 2019 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enginebai/ea3a7b20ba92c709af78d7c8b2e72525 to your computer and use it in GitHub Desktop.
Save enginebai/ea3a7b20ba92c709af78d7c8b2e72525 to your computer and use it in GitHub Desktop.
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