Rx.Observable.range(start, count, [scheduler])

Generates an observable sequence of integral numbers within a specified range, using the specified scheduler to send out observer messages.

Arguments

  1. start (Number): The value of the first integer in the sequence.
  2. count (Number): The number of sequential integers to generate.
  3. [scheduler=Rx.Scheduler.currentThread] (Scheduler): Scheduler to run the generator loop on. If not specified, defaults to Scheduler.currentThread.

Returns

(Observable): An observable sequence that contains a range of sequential integral numbers.

Example