Rx.Observable.return(value, [scheduler]) | Rx.Observable.just(value, [scheduler])

Returns an observable sequence that contains a single element, using the specified scheduler to send out observer messages.

This is an alias for just.

Arguments

  1. value (Any): Single element in the resulting observable sequence.
  2. [scheduler=Rx.Scheduler.immediate] (Scheduler): Scheduler to send the single element on. If not specified, defaults to Scheduler.immediate.

Returns

(Observable): An observable sequence with the single element.

Example