Is there any way to force a Observable.Buffer to flush before the end of buffered time?
In the example:
mSubscription = mFluxObservable.Buffer(new TimeSpan(0, 0, 1, 30)).Subscribe(o => saver(o, iSessionId));
I want to flush the data before the 1:30 period has finished!
...and basically the same principal using window:
This worked for me:
Now I only need to call
subject.OnNext(Unit.Default)
to force the buffer to flush. A new buffer is started immediately after the flush.