(item: IQueueItem<T>)
| 9 | constructor(private readonly maxSize: number) {} |
| 10 | |
| 11 | push(item: IQueueItem<T>) { |
| 12 | if (this.items.length >= this.maxSize) { |
| 13 | this.items.shift(); |
| 14 | } |
| 15 | this.items.find((v) => v.key === item.key); |
| 16 | this.items.push(item); |
| 17 | } |
| 18 | |
| 19 | pop() { |
| 20 | const v = this.items.shift(); |
no outgoing calls
no test coverage detected