char m
char m

Reputation: 8336

What rxjs operator emits single value when any of the source observables emit?

So like rxjs operator race but so that it doesn't stop emitting.

time   -> 

source1 emits 1           4

source2 emits     2            5

source3 emits        3             6

so the combined observable should emit the numbers in following sequence (1 number per emit):

              1   2  3    4    5   6

Upvotes: 1

Views: 216

Answers (1)

kevin
kevin

Reputation: 953

You're looking for the merge operator. It takes in several observables and emits as one.

Upvotes: 3

Related Questions