dequeue

abstract suspend fun dequeue(): Node<T>(source)

Dequeues the head element from the queue.

Return

the node that was removed from the queue.

Throws

if the queue is empty.