Code example for ListenableFuture

Methods: isCancelled

0
        return delegate.cancel(mayInterruptIfRunning);
    } 
 
    @Override 
    public boolean isCancelled() { 
        return delegate.isCancelled();
    } 
 
    @Override 
    public boolean isDone() { 
        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 {