(value: T)
| 34 | } |
| 35 | |
| 36 | push(value: T): void { |
| 37 | if (this.#queue.length > 0) { |
| 38 | const d = this.#queue.shift()!; |
| 39 | d.resolve(value); |
| 40 | } else { |
| 41 | this.#elements.push(value); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | get size(): number { |
| 46 | return this.#size; |
no outgoing calls
no test coverage detected