Merging

In general terminology, merging can be defined as combining two or more sequences in the simplest way possible. In this section, we will go through the merge operator. Merge will combine emissions by multiple Observable sequences into a single new Observable sequence and emit each event in the order it is emitted by each source sequence. The following diagram of the merge operator will clear a few errands:

If you were developing a social media app like Twitter, you could use merge to combine all tweets from followed users into a single timeline. Let's work with the merge operator in code to understand the working in detail. We will ...

Get Reactive Programming with Swift 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.