mirror of
https://github.com/agdamsbo/prioritized.grouping.git
synced 2025-09-12 18:49:39 +02:00
17 lines
378 B
TypeScript
17 lines
378 B
TypeScript
/**
|
|
* @module Queue
|
|
*/
|
|
/**
|
|
* Asynchronous queue mechanism to be used by the communication channels.
|
|
* @typeParam T The type of item to be stored in the queue.
|
|
*/
|
|
export declare class AsyncQueue<T> {
|
|
#private;
|
|
constructor();
|
|
reset(): void;
|
|
put(t: T): void;
|
|
get(): Promise<T>;
|
|
isEmpty(): boolean;
|
|
isBlocked(): boolean;
|
|
get length(): number;
|
|
}
|