Under this category, we will discuss operators that facilitate working with multiple Observable as sources to create a new Observable from the items emitted from sources.
Combining Observables
Using the merge() operator for combining observables
The merge() operator combines multiple Observable sources to merge the items emitted by them into a single resultant Observable. While the emission from multiple Observable is going on, any one of them may emit a onError signal; under such circumstances, the resultant Observable will also terminate.
Let's consider an Observable obtained by merging two Observable obtained from the range() operator, as shown by the following code:
public static void main(String[] args) { ...