UNPKG
active-switching
Version:
latest (0.6.7)
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.7
0.5.6
0.5.5
NPAW's SDK for CDN Balancing and P2P
bitbucket.org/npaw/cdn-balancer-js
active-switching
/
dist
/
Utils
/
Queue.d.ts
12 lines
(11 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export default class Queue<T> { private size; private array;
constructor
(size: number);
add
(data: T): void;
removeFirst
(): T | undefined;
peek
(): T | undefined;
isEmpty
(): boolean;
copyArray
(): T[];
lastn
(n: number): T[]; }