Rx.Observable.interval(period, [scheduler])

Returns an observable sequence that produces a value after each period.

Arguments

  1. period (Number): Period for producing the values in the resulting sequence (specified as an integer denoting milliseconds).
  2. [scheduler] (Scheduler=Rx.Scheduler.timeout): Scheduler to run the timer on. If not specified, Rx.Scheduler.timeout is used.

Returns

(Observable): An observable sequence that produces a value after each period.

Example