Unlinks the first element in the queue, waiting up to the specified time to do so if the queue is empty.
<p>This method is equivalent to {@link #pollFirst(long, TimeUnit)}.
@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
See Implementation
Unlinks the first element in the queue, waiting up to the specified time to do so if the queue is empty.
<p>This method is equivalent to {@link #pollFirst(long, TimeUnit)}.
@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