Range

See also

  • Official ReactiveX documentation: Range
classmethod Observable.range(start, count, scheduler=None)

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

1 - res = Rx.Observable.range(0, 10) 2 - res = Rx.Observable.range(0, 10, rx.Scheduler.timeout)

Keyword arguments: start – The value of the first integer in the sequence. count – The number of sequential integers to generate. scheduler – [Optional] Scheduler to run the generator loop on. If not

specified, defaults to Scheduler.current_thread.

Returns an observable sequence that contains a range of sequential integral numbers.

../../_images/range.png