Skip to content

Instantly share code, notes, and snippets.

@feresr
Last active January 28, 2017 06:32
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 feresr/200053333e4f44ffeaf815fe1f242f5c to your computer and use it in GitHub Desktop.
Save feresr/200053333e4f44ffeaf815fe1f242f5c to your computer and use it in GitHub Desktop.
Observable<Data> dataStream = RxView.clicks(button)
.flatMap(new Func1<Void, Observable<Data>>() {
@Override
public Observable<Data> call(Void aVoid) {
return apiEndpoints.getData();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment