Create a gist now

Instantly share code, notes, and snippets.

warm observable snippet for a blog post
Observable
.interval(1, TimeUnit.SECONDS)
.map(new Func1<Long, Integer>() {
@Override
public Integer call(Long aLong) {
return aLong.intValue();
}
})
.take(20)
.share();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment