poll

abstract fun poll(): E?

Retrieves and removes the head of this queue, or returns null if this queue is empty.

Return

the head of this queue, or null if this queue is empty