UNPKG

p-queue-es5

Version:

Promise queue with concurrency control

7 lines (6 loc) 208 B
export declare type RunFunction = () => Promise<unknown>; export interface Queue<Options> { size: number; dequeue(): RunFunction | undefined; enqueue(run: RunFunction, options?: Options): void; }