timeInterval
signature: timeInterval(scheduler: *): Observable<TimeInterval<any>> | WebSocketSubject<T> | Observable<T>
timeInterval(scheduler: *): Observable<TimeInterval<any>> | WebSocketSubject<T> | Observable<T>
Convert an Observable that emits items into one that emits indications of the amount of time elapsed between those emissions
Examples
Example 1: Time between mouse clicks
( StackBlitz )
Related Recipes
Additional Resources
timeInterval 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/timeInterval.ts
Last updated