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

Latest commit

 

History

History
50 lines (39 loc) · 2.05 KB

never.md

File metadata and controls

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