O'Reilly logo

RxJava Essentials by Ivan Morgillo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Combining Observables

In the previous chapter, we learned how to transform Observable sequences. We saw a practical example of map(), scan(), groupBy(), and a few more useful functions that will help us manipulate an Observable to create the final Observable we want.

In this chapter, we are going to dig into the combining functions and will learn how to work with multiple Observables at the same time to create the Observable that we want.

Merge

Living in an asynchronous world often creates scenarios in which we have multiple sources but we want to provide only one fruition point: multiple input, single output. RxJava merge() helps you to combine two or more Observables, merging their emitted items. The following figure gives you an example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required