Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.81 KB

ignoreelements.md

File metadata and controls

50 lines (39 loc) · 1.81 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: