Polling with RxJava 2

And how to unit test it

Use cases

Getting user’s status from server so as to “block” the bad ones, checking payment confirmation that takes 2–3 mins

Notes

Observable.interval(2L, TimeUnit.SECONDS, schedulerProvider.io)... will work

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store