StartWith

We have already learned how to concatenate multiple Observables or append specific values to an emitting sequence. RxJava's startWith() is the counterpart of concat(). As concat() appends items to the ones emitted by an Observable, startWith() emits a sequence of items, passed as a parameter, before the Observable starts emitting their own items, as shown in the next figure:

StartWith
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.172.146