[ This question is regarding IObservable / Rx ]
Working Fixed Delay
var frequency = TimeSpan.FromMinutes(5);
Result.Delay(frequency).Subscribe(i => Debug.WriteLine("After Fixed Delay"));
Pseudo-Code for Variable Delay
Result.Delay(GetAsymptotingTime()).Subscribe(i => Debug.WriteLine("After Changing Delay"));
While the code for variable delay compiles it gets called only once, providing only the first value (essentially a fixed value).
- How could you subscribe with a dynamic delay in Reactive Extensions?
I think this works:
If your delays are decreasing, the resulting stream may be in a different order to the original stream.