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

Method allAsList

output/java_guava/1.4.17/Futures.java:760–764  ·  view source on GitHub ↗

Creates a new ListenableFuture whose value is a list containing the values of all its input futures, if all succeed. If any input fails, the returned future fails immediately. The list of results is in the same order as the input list. Canceling this future will attempt to cancel all

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

Source from the content-addressed store, hash-verified

758 */
759
760 @Beta
761 @SafeVarargs
762 public static <V> ListenableFuture<List<V>> allAsList(ListenableFuture<? extends V>... futures) {
763 return new ListFuture<V>(ImmutableList.copyOf(futures), true);
764 }
765
766 /**
767 * 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