mergeAll
signature: mergeAll(concurrent: number): Observable
mergeAll(concurrent: number): Observable
Collect and subscribe to all observables.
:bulb: In many cases you can use mergeMap as a single operator instead!
Examples
( example tests )
Example 1: mergeAll with promises
( StackBlitz | jsBin | jsFiddle )
Example 2: mergeAll with concurrent parameter
( StackBlitz | jsFiddle )
Additional Resources
:newspaper: - Official docs
Flatten a higher order observable with mergeAll in RxJS
:video_camera: :dollar: - André Staltz
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/mergeAll.ts
Last updated