Code example for ListenableFuture

Methods: get

0
        return delegate.isDone();
    } 
 
    @Override 
    public V get() throws InterruptedException, ExecutionException {
        return delegate.get();
    } 
 
    @Override 
    public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
        return delegate.get(timeout, unit);
    } 
 
 
    private RuntimeException extractCauseFromExecutionException(ExecutionException e) {
        final Throwable cause = e.getCause();
        if (cause instanceof DriverException) {
            return ((DriverException) cause).copy();
        } else if (cause instanceof DriverInternalError) {
            return (DriverInternalError) cause;
Contextual code suggestions in your IDE  Get Codota for Java