@Override public final V get() throws InterruptedException, ExecutionException { for (; ; ) { try { return get(Long.MAX_VALUE, TimeUnit.MILLISECONDS); } catch (TimeoutException ignored) { // A timeout here can only be a spurious artifact. // It should never happen and even if it does, we must retry. ignore(ignored); } } }
@Override public final V get() throws InterruptedException, ExecutionException { for (; ; ) { try { return get(Long.MAX_VALUE, TimeUnit.MILLISECONDS); } catch (TimeoutException ignored) { // A timeout here can only be a spurious artifact. // It should never happen and even if it does, we must retry. ignore(ignored); } } }