/guava/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
if ( ( outputFuture.isCancelled( ) ) && ( taskExecutor.trySetCancelled( ) ) ) {   taskFuture.cancel( false) ; }
[Delete]
ListenableFuture<@Nullable Void> oldFuture = ref.getAndSet(newFuture); TrustedListenableFutureTask<T> taskFuture = TrustedListenableFutureTask.create(task); oldFuture.addListener(taskFuture, taskExecutor); ListenableFuture<T> outputFuture = Futures.nonCancellationPropagating(taskFuture); Runnable listener = () -> { <extra_id_0> newFuture.setFuture(oldFuture); } else if (outputFuture.isCancelled() && taskExecutor.trySetCancelled()) { taskFuture.cancel(false); } }; outputFuture.addListener(listener, directExecutor());