Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Latest commit

 

History

History
62 lines (51 loc) · 2.07 KB

concatall.md

File metadata and controls

62 lines (51 loc) · 2.07 KB

Rx.Observable.prototype.concatAll()

Rx.Observable.prototype.concatObservable() DEPRECATED

Concatenates a sequence of observable sequences or promises into a single observable sequence.

Returns

(Observable): The observable sequence that merges the elements of the inner sequences.

Example

var source = Rx.Observable.range(0, 3)
  .map(function (x) { return Rx.Observable.range(x, 3); })
  .concatAll();

var subscription = source.subscribe(
  function (x) {
    console.log('Next: %s', x);
  },
  function (err) {
    console.log('Error: %s', err);
  },
  function () {
    console.log('Completed');
  });

// => Next: 0
// => Next: 1
// => Next: 2
// => Next: 1
// => Next: 2
// => Next: 3
// => Next: 2
// => Next: 3
// => Next: 4
// => Completed

Location

File:

Dist:

NPM Packages:

NuGet Packages:

Unit Tests: