@cloud-copilot/iam-lens
Version:
Visibility in IAM in and across AWS accounts
18 lines • 545 B
TypeScript
export interface StreamingWorkQueueOptions {
ringCapacity?: number;
}
export declare class StreamingWorkQueue<T> {
private ringCapacity;
private rings;
private enqueueIndex;
private dequeueIndex;
private onWorkAvailable?;
private notifyScheduled;
constructor(options?: StreamingWorkQueueOptions);
setWorkAvailableCallback(callback: () => void): void;
enqueue(item: T): void;
dequeue(): T | undefined;
length(): number;
private scheduleNotify;
}
//# sourceMappingURL=StreamingWorkQueue.d.ts.map