Constructor
new Queue(backoff, rateLimit, debug)
Creates a queue with the given backoff parameter
Parameters:
Name | Type | Description |
---|---|---|
backoff |
number | Base backoff time in milliseconds. |
rateLimit |
number | Milliseconds to wait between requests. |
debug |
boolean | Whether or not debug info should be logged. |
Members
Methods
schedule(job)
Schedule a job for execution
Parameters:
Name | Type | Description |
---|---|---|
job |
function | Function that needs to be executed |