sendRequests<T> method

Future<void> sendRequests<T>(
  1. Iterable<Future<T>> requests()
)

Implementation

Future<void> sendRequests<T>(Iterable<Future<T>> Function() requests) async {
  if ((_identity == null || isTokenAboutToExpire) &&
      (!this.autoRefresh || !await refresh(raiseEvents: true)))
    throw AuthenticationException();

  await Future.wait(requests());
}