Code coverage report for src/operator/expand.ts

Statements: 100% (7 / 7)      Branches: 62.5% (5 / 8)      Functions: 100% (1 / 1)      Lines: 100% (6 / 6)      Ignored: none     

All files » src/operator/ » expand.ts
1 2 3 4 5 6 7 8 9 10 11 12    1   1 25 28 14   14    
import {Observable} from '../Observable';
import {Scheduler} from '../Scheduler';
import {ExpandOperator} from './expand-support';
 
export function expand<T, R>(project: (value: T, index: number) => Observable<R>,
                             concurrent: number = Number.POSITIVE_INFINITY,
                             Escheduler: Scheduler = undefined): Observable<R> {
  concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;
 
  return this.lift(new ExpandOperator(project, concurrent, scheduler));
}