Rx.Notification.prototype.toObservable([scheduler])

Returns an observable sequence with a single notification.

Arguments

  1. [scheduler = Rx.Scheduler.immediate] (Scheduler): Scheduler to send out the notification calls on.

Returns

(Observable): The observable sequence that surfaces the behavior of the notification upon subscription.

Example

Without a scheduler

With a scheduler

Location

  • rx.js