* @param {function(T):*} callback
(callback)
| 73 | * @param {function(T):*} callback |
| 74 | */ |
| 75 | forEach(callback) { |
| 76 | let index = this.length; |
| 77 | while (index--) { |
| 78 | callback(this.queue_[index].item); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Dequeues the max priority item. |
no test coverage detected