I am trying to schedule a long polling mechanism. And I was wondering if I could leverage Schedulers for that.
Here's what I have been thinking so far.
Schedule via timer, but only enqueue next iteration if previous iteration has already finished.
Enqueue next iteration as previous iteration is finishing.
I have been looking at existing schedulers, but I am not really sure which one to pick and what to overload.
And last but not least - as I am a novice in Rx world - what are the advantages that the use of Scheduler would offer vis-a-vis "roll your own" approach.