(self, item, priority)
Insert item into the queue, with the given priority.
Insert item into the queue, with the given priority.
Insert item into the queue with the given priority .
def insert(self, item, priority):
        """
        Insert item into the queue, with the given priority.
        """
        heappush(self.heap, HeapItem(item, priority))
def insert ( self , item , priority ) : heappush ( self . heap , HeapItem ( item , priority ) )