Contents
Updated on 2021-02-09
Interval Operator
Can be imported from here:
|
|
For official documentation, visit https://rxjs-dev.firebaseapp.com/api/index/function/interval
What it does?
Creates an observable and emits in sequence at specified interval of time.
Example 1
|
|
Output:
|
|
Example 2 (with take() operator)
|
|
Output:
|
|
Emits only 3 values in sequence at time intervals set.
Комментарии