芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@sentry/utils/dist/promisebuffer.d.ts
/** A simple queue that holds promises. */ export declare class PromiseBuffer
{ protected _limit?: number | undefined; /** Internal set of queued Promises */ private readonly _buffer; constructor(_limit?: number | undefined); /** * Says if the buffer is ready to take more requests */ isReady(): boolean; /** * Add a promise to the queue. * * @param task Can be any PromiseLike
* @returns The original promise. */ add(task: PromiseLike
): PromiseLike
; /** * Remove a promise to the queue. * * @param task Can be any PromiseLike
* @returns Removed promise. */ remove(task: PromiseLike
): PromiseLike
; /** * This function returns the number of unresolved promises in the queue. */ length(): number; /** * This will drain the whole queue, returns true if queue is empty or drained. * If timeout is provided and the queue takes longer to drain, the promise still resolves but with false. * * @param timeout Number in ms to wait until it resolves with false. */ drain(timeout?: number): PromiseLike
; } //# sourceMappingURL=promisebuffer.d.ts.map