Skip to content
richardszalay edited this page May 20, 2011 · 9 revisions

Creates an observable sequence that immediately completes.

static function empty(scheduler : IScheduler = null) : IObservable.<*>

Remarks

The returned sequence immediately completes

The returned sequence does not raise errors

Marble Diagrams

─/

Scheduling

Unless specified, this operator uses Scheduler.synchronous.

Return Value

IObservable.<*>

Examples

Observable.empty()
    .subscribe(
        null,
        function():void { trace("Completed!"); }
    );

    // Trace output is:
    // Completed!
Clone this wiki locally