I have a method that returns observable. This observable should (if everything works correctly) publish a value every second. What I would like to do is post some kind of custom warning value if a certain time has passed without output.
private IObservable<string> GetStatus() { return statusProvider .Subscribe(statusKey)
Is there an easy way for me to change the above, so that if the status update does not appear within 30 seconds, statusProvider publishes “bad”, and then, if an update occurs after that, it will be published as usual and the timer restarts again to 30 seconds?
Flack source share