throttle
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/app/performance/performanceUtils / throttle
Function: throttle()
throttle<
T>(func:T,wait:number):T& {cancel: () =>void; }
Defined in: utils/app/performance/performanceUtils.js:253
Throttle a function
Type Parametersβ
Tβ
T extends (...args: any[]) => any
Parametersβ
funcβ
T
Function to throttle
waitβ
number
Wait time in milliseconds
Returnsβ
T & { cancel: () => void; }
Throttled function