join method

Future join()

Completes when the currently active requests and content reads complete.

Implementation

Future join() async {
  await Future.wait(_ongoingRequests.map((f) => f!.whenComplete(() => null)));
  await Future.wait(_ongoingContents.map((f) => f.whenComplete(() => null)));
}