Instantiate a throttler.
The function being throttled.
Rest ...args: VOptional options: number | Throttler.IOptionsThrottling configuration or throttling limit in ms.
The edge defaults to leading; the limit defaults to 500.
Private _intervalPrivate _trailingProtected 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.
Generated using TypeDoc
Wraps and throttles a function that can be called multiple times and only executes the underlying function once per
interval.Typeparam
T - The resolved type of the underlying function. Defaults to any.
Typeparam
U - The rejected type of the underlying function. Defaults to any.
Typeparam
V - Arguments for the underlying function. Defaults to any[].