Abstract Instantiate a rate limiter.
The function to rate limit.
Rest ...args: VThe rate limit; defaults to 500ms.
Protected argsArguments for the underlying function.
Readonly limitThe rate limit in milliseconds.
Protected payloadA promise that resolves on each successful invocation.
Protected pollThe underlying poll instance used by the rate limiter.
Whether the rate limiter is disposed.
Abstract invokeGenerated using TypeDoc
A base class to implement rate limiters with different invocation strategies.
Typeparam
T - The resolved type of the underlying function.
Typeparam
U - The rejected type of the underlying function.
Typeparam
V - Arguments for the underlying function.