@100mslive/hms-video-store
Version:
@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow
16 lines (15 loc) • 403 B
TypeScript
export interface IQueue<T> {
size(): number;
enqueue(item: T): void;
dequeue(): T | undefined;
}
export declare class Queue<T> implements IQueue<T> {
private capacity;
protected storage: T[];
constructor(capacity?: number);
size(): number;
toList(): T[];
enqueue(item: T): void;
dequeue(): T | undefined;
aggregate<R>(aggregationFn: (values: T[]) => R): R;
}