Class Timing
Index
Constructors
Methods
Methods
Static
debounce
- debounce<Args>(callback, delay): ((...args: Args[]) => void)
Wraps a callback in a debounced timeout. Delay execution of the callback function until the function has not been called for the given delay in milliseconds.
Type Parameters
Parameters
Returns ((...args: Args[]) => void)
A wrapped function that can be called to debounce execution.
- (...args): void
Parameters
Rest
...args: Args[]
Returns void
Static
doubleClick
- double
Click (opts): ((event: Event) => void) Creates a double click event handler that distinguishes between single and double clicks. Calls the
single
callback on a single click and thedouble
callback on a double click. The default double click delay to invoke thedouble
callback is 400 milliseconds.Parameters
Returns ((event: Event) => void)
The gated double-click handler.
- (event): void
Parameters
- event: Event
Returns void
Provides timing related higher-order functions.
This class should not be constructed as it only contains static methods.