A mechanism that defers function calls until no calls are received during a given interval.
delay in milliseconds
underlying function
Schedule a call to the underlying function with the given parameters. If subsequent calls are made within the same interval, this call and its parameters are discarded.
If a call is currently scheduled, execute it immediately
Cancel any scheduled call
A mechanism that defers function calls until no calls are received during a given interval.