Creates a throttling wrapper for the provided function with the provided wait time. If the wrapped function has been successfully called
within the wait time, further call attempts will be delayed until the wait time has passed.
Type parameters
argsT:any[]
retT
Parameters
func: (...args: argsT) => retT
The function to throttle
Returns (waitInterval: number, ...args: argsT) => retT
Creates a throttling wrapper for the provided function with the provided wait time. If the wrapped function has been successfully called within the wait time, further call attempts will be delayed until the wait time has passed.