Using C# with Rx.NET. Is there a way to extend the duration time of an Observable.Timer
after it was started? Is there a way with Join(...)
or Expand(...)
? I do not like to dispose the old timer and not like to create a new one.
Example: initial duration is 5 minutes. But 1 minute before the timer completes, I like to reset it to 5 minutes, to measure 5 minutes again.
var _timerDisposable = Observable.Timer(duration)
.ObserveOn(Scheduler.Default)
.Subscribe((_) => DoSomething());