await7<A, B, C, D, E, F, G> function

Future<Tuple7<A, B, C, D, E, F, G>> await7<A, B, C, D, E, F, G>(
  1. Future<A> a,
  2. Future<B> b,
  3. Future<C> c,
  4. Future<D> d,
  5. Future<E> e,
  6. Future<F> f,
  7. Future<G> g,
)

Waits for all futures and returns a future containing a Tuple7 with the results of all futures

Implementation

Future<Tuple7<A, B, C, D, E, F, G>> await7<A, B, C, D, E, F, G>(
  Future<A> a,
  Future<B> b,
  Future<C> c,
  Future<D> d,
  Future<E> e,
  Future<F> f,
  Future<G> g,
) {
  return Future.wait([a, b, c, d, e, f, g])
      .then((values) => Tuple7.fromList(values));
}