New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to clear MultiSourceProducer's buffer/cache when using CombineLatest #3064
Comments
If you retain timestamps in both streams then you could filter out results from combineLatest that have different dates. |
Thanks Dave, |
Doesn't introduce a new field in your class necessarily because you just wrap your object with
Sure, that's your call to say if it's significant, benchmarks might be handy to do
Sorry I don't follow this bit. You could also get a reset by using |
Maybe apply one of the window operators before this logic to break up the Obersvable into day length chunks. |
If you think you need (mutable) state, typically you are doing it wrong. |
Based on the nice diagram from official documentation, combineLatest http://reactivex.io/documentation/operators/combinelatest.html
I wonder if there is a way, say when I received "C" from the second Observable, I would like to clear the states inside both first and second Observables. So that when "D" arrives from second Observable, it will no longer combine with "2" from the first Observable but wait until "3" arrives.
This is useful in the case like, there is no data after the business day is finished (say 9 to 5, so 16 hours quiet period). So without re-subscribing and re-initializing, it would be nice to clear the state so that the data coming from next business day will not be combined with old data.
The text was updated successfully, but these errors were encountered: