@Override
    public boolean complete(T value) {
        boolean completedByThisMethod = JAVA8 ? //
                        completableFuture.complete(value) : //
                        super.complete(value);

        // If corresponding task has been submitted to an executor, attempt to cancel it
        if (completedByThisMethod && futureRef != null) {
            Future<?> future = futureRef.get();
            if (future != null)
                future.cancel(true);
        }

        return completedByThisMethod;
    }
@ Override public boolean complete ( T value ) { boolean completedByThisMethod = JAVA8 ? completableFuture . complete ( value ) : super . complete ( value ) ; if ( completedByThisMethod && futureRef != null ) { Future < ? > future = futureRef . get ( ) ; if ( future != null ) future . cancel ( true ) ; } return completedByThisMethod ; }
@see java.util.concurrent.CompletableFuture#complete(T)