UNPKG

promise-call-limit

Version:

Call an array of promise-returning functions, restricting concurrency to a specified limit.

7 lines 272 B
export type Step<T> = () => Promise<T>; export type Options = { limit?: number; rejectLate?: boolean; }; export declare const callLimit: <T extends unknown>(queue: Step<T>[], { limit, rejectLate }?: Options) => Promise<unknown>; //# sourceMappingURL=index.d.ts.map