Hi all. I have flow which is being updated periodi...
# coroutines
r
Hi all. I have flow which is being updated periodically. If I collect the flow directly, it works fine, but if I combine it with other flows I don't get new updates. Any ideas?
d
Is one of the other flows empty or not emitting?
combine
requires all flows to emit at least once before you will get an emission downstream.
https://rxmarbles.com/#combineLatest Lambda wont be invoked until both
1
and
A
is present.
r
there are no empty flows, all flows has data
d
Have you verify it with
onEach
and tapping in to it? Also are you consuming the result of the
combine
, e.g using
collect
?
r
I did all of it
d
Outcome? Do you have some code to share? It is hard to reason about it when there is no code 🙂
r
I fixed it, there was a flatMapConcat which was canceling the flow, I changed it to flatMapMerge and it worked
Thanks anyway