Creates a FutureCombiner requiring that all passed in futures are successful. If any input fails, the returned future fails immediately. @since 20.0
(ListenableFuture<? extends V>... futures)
| 815 | */ |
| 816 | |
| 817 | @SafeVarargs |
| 818 | public static <V> FutureCombiner<V> whenAllSucceed(ListenableFuture<? extends V>... futures) { |
| 819 | return new FutureCombiner<V>(true, ImmutableList.copyOf(futures)); |
| 820 | } |
| 821 | |
| 822 | /** |
| 823 | * Creates a {@link FutureCombiner} requiring that all passed in futures are successful. |