await4<A, B, C, D> function
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));
}