MCPcopy Index your code
hub / github.com/antlr/codebuff / addCallback

Method addCallback

output/java_guava/1.4.16/Futures.java:1092–1094  ·  view source on GitHub ↗

Registers separate success and failure callbacks to be run when the Future's computation is plain java.util.concurrent.Future#isDone() complete or, if the computation is already complete, immediately. There is no guaranteed ordering of execution of callbacks, but any callback adde

(ListenableFuture<V> future, FutureCallback<? super V> callback)

Source from the content-addressed store, hash-verified

1090
1091
1092 public static <V> void addCallback(ListenableFuture<V> future, FutureCallback<? super V> callback) {
1093 addCallback(future, callback, directExecutor());
1094 }
1095
1096 /**
1097 * Registers separate success and failure callbacks to be run when the {@code Future}'s

Callers

nothing calls this directly

Calls 3

checkNotNullMethod · 0.95
addListenerMethod · 0.65
directExecutorMethod · 0.45

Tested by

no test coverage detected