8 lines
291 B
TypeScript
8 lines
291 B
TypeScript
|
import type { ThenableRecord } from './router-reducer/router-reducer-types';
|
||
|
export declare class PromiseQueue {
|
||
|
#private;
|
||
|
constructor(maxConcurrency?: number);
|
||
|
enqueue<T>(promiseFn: () => Promise<T>): Promise<T>;
|
||
|
bump(promiseFn: ThenableRecord<any> | Promise<any>): void;
|
||
|
}
|