Peek will return the op with the highest priority without removing it from the queue
()
| 121 | |
| 122 | // Peek will return the op with the highest priority without removing it from the queue |
| 123 | func (pq *PriorityQueue) Peek() PriorityOp { |
| 124 | op := pq.queue[0] |
| 125 | return op |
| 126 | } |
no outgoing calls