Skip to main content

Function: throttle()

function throttle<This, Args extends unknown[], Return>(
func: (this: This, ...args: Args) => Return,
wait: number
): DebouncedFunction<This, Args, Return>;

Defined in: utils/app/performance/performanceUtils.ts:291

Throttle a callable.

Type Parameters​

This​

This

Args​

Args extends unknown[]

Return​

Return

Parameters​

func​

(this: This, ...args: Args) => Return

wait​

number

Returns​

DebouncedFunction<This, Args, Return>