Skip to content

Instantly share code, notes, and snippets.

@MathiasSeguy-Android2EE
Created June 11, 2020 09:08
Show Gist options
  • Save MathiasSeguy-Android2EE/1071a07eb5d7da8ed83286d0bf4732a0 to your computer and use it in GitHub Desktop.
Save MathiasSeguy-Android2EE/1071a07eb5d7da8ed83286d0bf4732a0 to your computer and use it in GitHub Desktop.
Markdium-Chapter 9: Observable's action operators
/**
* Using the observableWithErrorSrc skip error items and return an empty observable
* @return
*/
public static Observable getObservableWithOnErrorResumeNextEmpty() {
//you can also return an empty Observable and then quit the Observable nicely
return observableWithErrorSrc
.onErrorResumeNext(Observable.empty());
}
/**
* When returning an empty Observable, you can quit the process nicely
*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment