Open alexweej opened 2 years ago
Looks like you need zip operator instead?
Ah yes thanks, that does actually work well for this special case of having exactly 1 input for every 1 output. I think we have a problem that involves a more complicated case that I'll try to form an example of and get back to you tomorrow.
Thanks again!
This seems to be a more general Rx issue, but specifically we're looking for solutions in the RxCpp space.
If we have the following:
then we observe x_obs emitting nonsensical intermediate values when
a_obs
emits values. It is expected to always bea + a^2
but because each of the input observables updates independently, we get transitional values.Our general problem extends beyond this synchronous value emission to ones using concat_map etc. with async processes and arbitrary streams of data for each input value, but we think this basic problem illustrates something we're missing either in our understanding of Rx or the feature set of RxCpp.
Please let us know if you have some ideas
Thanks!