public E pollLast()

in src/main/java/org/apache/commons/pool3/impl/LinkedBlockingDeque.java [980:996]


    public E pollLast(final Duration timeout)
        throws InterruptedException {
        long nanos = timeout.toNanos();
        lock.lockInterruptibly();
        try {
            E x;
            while ( (x = unlinkLast()) == null) {
                if (nanos <= 0) {
                    return null;
                }
                nanos = notEmpty.awaitNanos(nanos);
            }
            return x;
        } finally {
            lock.unlock();
        }
    }