UNPKG

limiter

Version:

A generic rate limiter for the web and node.js. Useful for API clients, web crawling, or other tasks that need to be throttled

6 lines 226 B
/** Serialize waiting requests so a backlog needs only one active timer. */ export declare class RequestQueue { private tail?; run<T>(request: () => Promise<T>): Promise<T>; } //# sourceMappingURL=RequestQueue.d.ts.map