Rx.Observable.prototype.throttle(dueTime, [scheduler])

Ignores values from an observable sequence which are followed by another value before dueTime.

Arguments

  1. dueTime (Number): Duration of the throttle period for each value (specified as an integer denoting milliseconds).
  2. [scheduler=Rx.Scheduler.timeout] (Any): Scheduler to run the throttle timers on. If not specified, the timeout scheduler is used.

Returns

(Observable): The throttled sequence.

Example