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

Latest commit

 

History

History
51 lines (40 loc) · 1.9 KB

ignoreelements.md

File metadata and controls

51 lines (40 loc) · 1.9 KB

Rx.Observable.prototype.ignoreElements()

Ignores all elements in an observable sequence leaving only the termination messages.

Returns

(Observable): An empty observable sequence that signals termination, successful or exceptional, of the source sequence.

Example

var source = Rx.Observable.range(0, 10)
    .ignoreElements();

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

// => Completed

Location

File:

Dist:

NPM Packages:

NuGet Packages:

Unit Tests: