securityos/node_modules/next/dist/client/components/promise-queue.d.ts

8 lines
291 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
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;
}