The resolved type of the underlying function. Defaults to any.
The rejected type of the underlying function. Defaults to any.
Instantiate a rate limiter.
The function to rate limit.
The rate limit; defaults to 500ms.
The rate limit in milliseconds.
A promise that resolves on each successful invocation.
The underlying poll instance used by the rate limiter.
Whether the rate limiter is disposed.
Disposes the rate limiter.
Invokes the function and only executes after rate limit has elapsed. Each invocation resets the timer.
Stop the function if it is mid-flight.
Generated using TypeDoc
Wraps and debounces a function that can be called multiple times and only executes the underlying function one
interval
after the last invocation.