await4<A, B, C, D> function

Future<Tuple4<A, B, C, D>> await4<A, B, C, D>(
  1. Future<A> a,
  2. Future<B> b,
  3. Future<C> c,
  4. Future<D> d,
)

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

Implementation

Future<Tuple4<A, B, C, D>> await4<A, B, C, D>(
  Future<A> a,
  Future<B> b,
  Future<C> c,
  Future<D> d,
) {
  return Future.wait([a, b, c, d]).then((values) => Tuple4.fromList(values));
}