Skip to content

Instantly share code, notes, and snippets.

@Laimiux
Created April 23, 2017 10:55
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 Laimiux/013e418bf678955bd25599274c809128 to your computer and use it in GitHub Desktop.
Save Laimiux/013e418bf678955bd25599274c809128 to your computer and use it in GitHub Desktop.
Observable<Lce<Data>> getDataEventStream() {
return api.getData()
.map(data -> Lce.data(data))
.startWith(Lce.loading())
.onErrorReturn(e -> Lce.error(e))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment