guava/src/com/google/common/util/concurrent/Futures.java
@Beta
  public static <V> ListenableFuture<V> nonCancellationPropagating(ListenableFuture<V> future) {
    if (future.isDone()) {
      return future;
    }
    NonCancellationPropagatingFuture<V> output = new NonCancellationPropagatingFuture<>(future);
    future.addListener(output, directExecutor());
    return output;
  }
@Beta
  public static <V> ListenableFuture<V> nonCancellationPropagating(ListenableFuture<V> future) {
    if (future.isDone()) {
      return future;
    }
    NonCancellationPropagatingFuture<V> output = new NonCancellationPropagatingFuture<>(future);
    future.addListener(output, directExecutor());
    return output;
  }
@ Beta public static < V > ListenableFuture < V > nonCancellationPropagating ( ListenableFuture < V > future ) { if ( future . isDone ( ) ) { return future ; } NonCancellationPropagatingFuture < V > output = new NonCancellationPropagatingFuture <> ( future ) ; future . addListener ( output , directExecutor ( ) ) ; return output ; }
Returns a {@code ListenableFuture} whose result is set from the supplied future when it
completes. Cancelling the supplied future will also cancel the returned future, but cancelling
the returned future will have no effect on the supplied future.

@since 15.0
Returns a { @code ListenableFuture } whose result is set from the supplied future when it completes . Cancelling the supplied future will also cancel the returned future but cancelling the returned future will have no effect on the supplied future .