I have an observable stream that produces values at inconsistent intervals like this:
------1---2------3----------------4--------------5---
And I would like to sample this but without any empty samples once the a value has been produced:
------1---2------3----------------4--------------5-----
----_----1----2----3----3----3----4----4----4----5----5
I obviously thought Replay().RefCount()
could be used here to provide the last known value to Sample()
but as it doesn't re-subscribe to the source stream it didn't work out.
Any thoughts on how I can do this?