Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Observable
.interval(2, TimeUnit.SECONDS, Schedulers.io())
.map(time -> {
// ...
// get value
return val;
})
.subscribe(result -> ..., Throwable::printStackTrace);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.