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.
Throttles function invocations if one is currently in flight.
Stop the function if it is mid-flight.
Generated using TypeDoc
Wraps and throttles a function that can be called multiple times and only executes the underlying function once per
interval
.