pull

abstract fun pull(): T

Removes first item from the queue and returns it. If there is no more elements in the queue, it throws an exception.