in src/main/java/com/spotify/futures/FuturesExtra.java [898:920]
public static <Z, A, B, C, D, E, F> ListenableFuture<Z> asyncTransform6(
ListenableFuture<A> a,
ListenableFuture<B> b,
ListenableFuture<C> c,
ListenableFuture<D> d,
ListenableFuture<E> e,
ListenableFuture<F> f,
final AsyncFunction6<Z, ? super A, ? super B, ? super C, ? super D, ? super E, ? super F>
function,
final Executor executor) {
return transform(
Arrays.asList(a, b, c, d, e, f),
(AsyncFunction<List<Object>, Z>)
results ->
function.apply(
(A) results.get(0),
(B) results.get(1),
(C) results.get(2),
(D) results.get(3),
(E) results.get(4),
(F) results.get(5)),
executor);
}