executeAndWaitResults method

Future<List<R>> executeAndWaitResults(
  1. AsyncExecutor executor
)

Executes the tasks with executor, waits the executions and returns the results.

Implementation

Future<List<R>> executeAndWaitResults(AsyncExecutor executor) async {
  var tasks = toList();
  var futureResults = executor.executeAll(tasks);
  var results = Future.wait(futureResults);
  return results;
}