UNPKG

websocket-ts

Version:

<div> <div align="center"> <img src="https://raw.githubusercontent.com/jjxxs/websocket-ts/gh-pages/websocket-ts-logo.svg" alt="websocket-ts" width="300" height="65" /> </div> <p align="center"> <img src="https://github.com/jjxxs/websocket-ts

17 lines 550 B
import { Queue } from "./queue"; /** * An array queue is a queue that has an unbounded capacity. Reading from an array queue * will return the oldest element and effectively remove it from the queue. */ export declare class ArrayQueue<E> implements Queue<E> { private readonly elements; constructor(); add(element: E): void; clear(): void; forEach(fn: (element: E) => unknown): void; length(): number; isEmpty(): boolean; peek(): E | undefined; read(): E | undefined; } //# sourceMappingURL=array_queue.d.ts.map