Skip to content

Instantly share code, notes, and snippets.

@feresr
Created Jan 28, 2017
Embed
What would you like to do?
sample.java
RxView.clicks(button)
.observeOn(Schedulers.io())
.debounce(2, TimeUnit.SECONDS)
.flatMap(aVoid -> apiEndpoints.getData())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(...);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment