Static
Readonly
fetchStatic
fetchNumber of requests currently being processed. Must be lower than maxThreads.
Static
Readonly
fetchRequests to be performed. Takes tuples containing a resolve-reject pair and arguments to be passed into the fetch function.
Static
Readonly
maxMaximum number of requests to be processed simultaneously.
Static
Readonly
minMinimum amount of milliseconds to wait between each request.
Handles requests that might get hit by a rate limit. Wraps around
fetch
and ensures that all users of the Requester only request a single time per 100 ms on top of the time it takes to load previous requests. Also runs on four "threads", allowing at least a certain level of asynchronicity.Particularly used when a multitude of requests have a chance to DoS a service.