@returns {T|null}
()
| 845 | } |
| 846 | /** @returns {T|null} */ |
| 847 | shift() { |
| 848 | const nextItem = this.list[this.bottom]; |
| 849 | if (nextItem === void 0) { |
| 850 | return null; |
| 851 | } |
| 852 | this.list[this.bottom] = void 0; |
| 853 | this.bottom = this.bottom + 1 & kMask; |
| 854 | return nextItem; |
| 855 | } |
| 856 | }; |
| 857 | module2.exports = class FixedQueue { |
| 858 | static { |
no outgoing calls