Episode 7 - combineLatest vs merge Monday, 30 Oct.
Let’s compare this card with
❚ merge, used on the same input streams:
On the other hand,
❚ combineLatest accepts a project function to combine two values (or more) into a new one, noted figuratively
⚬ ⟶ ⚭ ⟵ ⚬.
This is how
❚ combineLatest operates with two (or more) input streams:
- Whenever any input stream emits a value, it combines the latest values emitted by each input stream
- As a result, it returns a new stream of combined events
You now know two different ways of combining streams 🙌. Next Monday, I’ll show you a third card that combines streams!