The configuration to use.
Calls the function when a spot is open based on the limiter rules.
The returned promise is resolved:
Accepts no arguments, you should use closures to pass parameters to the function.
The function to execute.
The resolved promise returned by the function, or null
if the call was dropped.
Generated using TypeDoc
The limiter.
You likely want to create your limiter as a global to ensure that all operations will share the same limiter and will respect the limit.
Limitations: You can only queue up to 2^54 - 1 many calls at a time (over 18 quadrillion). Additional calls may cause some queued calls to be dropped. Although nodejs will probably break before you get to that number.