awaitBoth<A, B> function

Future<Tuple<A, B>> awaitBoth<A, B>(
  1. FutureOr<A> a,
  2. FutureOr<B> b
)

Implementation

Future<Tuple<A, B>> awaitBoth<A, B>(FutureOr<A> a, FutureOr<B> b) async {
  return Tuple(await Future.value(a), await Future.value(b));
}