throttleTime
signature: throttleTime(duration: number, scheduler: Scheduler, config: ThrottleConfig): Observable
throttleTime(duration: number, scheduler: Scheduler, config: ThrottleConfig): Observable
Emit first value then ignore for specified duration
Examples
Example 1: Emit first value, ignore for 5s window
( StackBlitz )
Example 2: Emit on trailing edge using config
( StackBlitz )
Related Recipes
Additional Resources
:newspaper: - Official docs
Filtering operator: throttle and throttleTime
:video_camera: :dollar: - André Staltz
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/throttleTime.ts
Last updated