search

goog.async.Debouncer<T>

Provided By
Extends
All Implemented Interfaces

Debouncer will perform a specified action exactly once for any sequence of signals fired repeatedly so long as they are fired less than a specified interval apart (in milliseconds). Whether it receives one signal or multiple, it will always wait until a full interval has elapsed since the last signal before performing the action.

new Debouncer<T>( listener, interval, opt_handler )

Parameters
listenerfunction(...?): ?

Function to callback when the action is triggered.

intervalnumber

Interval over which to debounce. The listener will only be called after the full interval has elapsed since the last signal.

opt_handler(T|null)=

Object in whose scope to call the listener.

Instance Methods

Instance Properties