Home > widget-integration > InstantSearchController > debounce
InstantSearchController.debounce() method
Simple debounce utility.
Signature:
protected debounce<T extends (...args: unknown[]) => unknown>(func: T, wait: number): (...args: Parameters<T>) => void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
func |
T |
Function to debounce |
|
wait |
number |
Wait time in ms |
Returns:
(...args: Parameters<T>) => void
Debounced function