October 2018
Intermediate to advanced
420 pages
10h 26m
English
In cases in which some items must be emitted at a fixed interval, the interval operator can be used instead of the timer operator. Its behavior is the same as the timer operator, wherein the same value is provided in duetime, a period parameter. This is how it is implemented. Its marble diagram is shown in the following figure:

Its prototype is as follows:
Observable.interval(period, scheduler=None)
The period parameter is the value, in milliseconds, of the period of item emission. This operator can be used as follows:
import datetimeticks = Observable.interval(1000)ticks.subscribe(