pop

fun pop(): E?

Removes the element with the highest priority.

Return

The element with the highest priority, or null if the queue is empty.