waitFutures method

FutureOr<List<T>> waitFutures()

Wait all elements that are Future.

Implementation

FutureOr<List<T>> waitFutures() {
  var futures = selectFutures();
  if (futures.isEmpty) {
    return <T>[];
  } else {
    return Future.wait(futures);
  }
}