Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.97 KB

never.md

File metadata and controls

49 lines (38 loc) · 1.97 KB

Rx.Observable.never()

Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins).

Returns

(Observable): An observable sequence whose observers will never get called.

Example

// This will never produce a value, hence never calling any of the callbacks
var source = Rx.Observable.never();

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

Location

File:

Dist:

Prerequisites:

NPM Packages:

NuGet Packages:

Unit Tests: