I need to perform one task using one Observable, obtaining the emitted data, then using another Observable to do another query.
Normally I would use a flatmap
to chain the two Observables and just caring about the final piece of data emitted.
Now there's a need to update the view during the process. Say when the first Observable emit data, I should show a text line on the UI.
I know I can break it down to two call times, calling the 2nd Observable inside onNext()
of the first one, but that's cumbersome.
How can I achieve what I described above without going down that path? Thanks