awaitAny method

Future<T> awaitAny()

Awaits each future in the iterable and returns the value of the first future to complete.

(This is a convenience method and is identical to Future.any(iterable))

Implementation

Future<T> awaitAny() {
  return Future.any(this);
}