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

Latest commit

 

History

History
57 lines (45 loc) · 2.14 KB

skipuntil.md

File metadata and controls

57 lines (45 loc) · 2.14 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: