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)
| 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 |