timer
Last updated
Last updated
timer(initialDelay: number | Date, period: number, scheduler: Scheduler): Observable
Example 1: timer emits 1 value then completes
( StackBlitz | jsBin | jsFiddle )
Example 2: timer emits after 1 second, then every 2 seconds
( StackBlitz | jsBin | jsFiddle )
timer 📰 - Official docs
Creation operators: interval and timer 🎥 💵 - André Staltz
Build your own timer operator 🎥 - Kwinten Pisman
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/observable/timer.ts