Rxjs - Operators - ConcatAll

Signature

export declare function concatAll<T>(): T;

高阶流版本的concat

Example

var clicks = Rx.Observable.fromEvent(document, 'click');
var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));
var firstOrder = higherOrder.concatAll();
firstOrder.subscribe(x => console.log(x));

就是子流一个结束了才继续下一个连接起来

Note: concatAll is equivalent to mergeAll with concurrency parameter set to 1.