I am using Buffer
to collect all events over one minute, and present them into a list:
this.GetServiceAvailablityRxStream
.Buffer(TimeSpan.FromMinutes(1))
.Subscribe(
serviceAvailableList =>
{
...
}
Currently, it buffers at T=1 min, then T=2 min, etc.
I'm wondering if its possible to shift the buffering back by 10 seconds, e.g. make it buffer at T=10 sec, then T=1 min+10 sec, then T=2 min+10 sec, etc.
What I have tried
I have tried all combinations of .Delay
, .DelaySubscription
, overloads on .Buffer
, putting .Delay
before and after the .Buffer
command, etc, and nothing seems to work.
I'm wondering if this is even possible in RX?