Skip to main content

throttle

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/app/performance/performanceUtils / throttle

Function: throttle()

throttle<This, Args, 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>