LinkedBlockingDeque.pollFirst

Unlinks the first element in the queue, waiting up to the specified time to do so if the queue is empty.

@param timeout length of time to wait @param unit units that timeout is expressed in

@return the unlinked element @throws InterruptedException if the current thread is interrupted

  1. E pollFirst()
  2. E pollFirst(Duration timeout)
    class LinkedBlockingDeque(E)
    override
    E
    pollFirst
    (
    Duration timeout
    )

Meta