poll

fun poll(): T?

Removes and returns the head of the queue, or null if the queue is empty.