artem_zin
03/30/2017, 1:10 AMwithLatestFrom()
is not very great operator itself either… Recently we were replacing some of it usages to combineLatest()
since withLatestFrom()
kinda breaks Rx flow if other
observable does not have emitted value at a time when upstream emits one which leads to silent drop of an upstream emission which would be ok for explicit operator like filter()
.
I can both agree and disagree on "abusing implementation details", I see your point, but I don’t see any reasons for withLatestFrom()
behavior to be changed in future since it would be a breaking change and it does not seem to be a “hidden” feature, even akarnokd use it with cold observables in tests.