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:
3.145.172.146