Create limiting function
The function is called immediately, unless it was recently called in which case the call is discarded until defined amount of time has passed.
Function to call
Milliseconds that must pass before the wrapped function can be called again.
Create limiting function
The function is called immediately, unless it was recently called in which case the call is discarded until defined amount of time has passed.