Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.06 KB

skipuntil.md

File metadata and controls

56 lines (44 loc) · 2.06 KB

Rx.Observable.prototype.skipUntil(other)

Returns the values from the source observable sequence only after the other observable sequence produces a value.

Arguments

  1. other (Observable | Promise): The observable sequence or Promise that triggers propagation of elements of the source sequence.

Returns

(Observable): An observable sequence containing the elements of the source sequence starting from the point the other sequence triggered propagation.

Example

var source = Rx.Observable.timer(0, 1000)
    .skipUntil(Rx.Observable.timer(5000));

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

// => Next: 6
// => Next: 7
// => Next: 8
// => Completed

Location

File:

Dist:

NPM Packages:

NuGet Packages:

Unit Tests: