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

Latest commit

 

History

History
56 lines (43 loc) · 1.9 KB

empty.md

File metadata and controls

56 lines (43 loc) · 1.9 KB

Rx.Observable.empty([scheduler])

Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message.

Arguments

  1. [scheduler=Rx.Scheduler.immediate] (Scheduler): Scheduler to send the termination call on.

Returns

(Observable): An observable sequence with no elements.

Example

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

Location

File:

Dist:

Prerequisites:

  • None

NPM Packages:

NuGet Packages:

Unit Tests: