Code coverage report for src/operator/concatAll.ts

Statements: 100% (4 / 4)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (3 / 3)      Ignored: none     

All files » src/operator/ » concatAll.ts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  1                         1 31    
import {Observable} from '../Observable';
import {MergeAllOperator} from './mergeAll-support';
 
/**
 * Joins every Observable emitted by the source (an Observable of Observables), in a serial
 * fashion. Subscribing to each one only when the previous one has completed, and merging
 * all of their values into the returned observable.
 *
 * __Warning:__ If the source Observable emits Observables quickly and endlessly, and the
 * Observables it emits generally complete slower than the source emits, you can run into
 * memory issues as the incoming observables collect in an unbounded buffer.
 *
 * @returns {Observable} an observable of values merged from the incoming observables.
 */
export function concatAll<T>(): Observable<T> {
  return this.lift(new MergeAllOperator(1));
}