MCPcopy Create free account
hub / github.com/antlr/codebuff / successfulAsList

Method successfulAsList

output/java_guava/1.4.18/Futures.java:986–990  ·  view source on GitHub ↗

Creates a new ListenableFuture whose value is a list containing the values of all its successful input futures. The list of results is in the same order as the input list, and if any of the provided futures fails or is canceled, its corresponding position will contain null (which is

(ListenableFuture<? extends V>... futures)

Source from the content-addressed store, hash-verified

984 */
985
986 @Beta
987 @SafeVarargs
988 public static <V> ListenableFuture<List<V>> successfulAsList(ListenableFuture<? extends V>... futures) {
989 return new ListFuture<V>(ImmutableList.copyOf(futures), false);
990 }
991
992 /**
993 * Creates a new {@code ListenableFuture} whose value is a list containing the values of all its

Callers

nothing calls this directly

Calls 1

copyOfMethod · 0.95

Tested by

no test coverage detected