This is RxJS v 4. Find the latest version here
Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message.
[scheduler=Rx.Scheduler.immediate]
(Scheduler
): Scheduler to send the termination call on.
(Observable
): An observable sequence with no elements.
var source = Rx.Observable.empty();
var subscription = source.subscribe(
function (x) {
console.log('Next: %s', x);
},
function (err) {
console.log('Error: %s', err);
},
function () {
console.log('Completed');
});
// => Completed
File:
Dist:
Prerequisites:
- None
NPM Packages:
NuGet Packages:
Unit Tests: