CombineLatest

The CombineLatest operator allows you to combine the items emitted by two or more observable sequences. Items are paired whenever any of the sequences emits a new item, using the latest items emitted by each of the other observables.

CombineLatest operator

The first pair is only emitted when all observables have emitted at least one item, so if an observable emits multiple items before the other observables have generated notifications, only the latest of those items will be included in the first pair.

The operator will terminate only when all observable sequences have terminated. If any of the observables terminates early, the last item emitted by that sequence will continue to be used to generate pairs whenever the remaining observables emit new items. This means the resulting sequence will be as long as the longest of the input sequences.