run method

Future<void> run()

Runs all the jobs in the queue in order, waiting for each job to finish before starting the next one.

This method returns a future that completes when all the jobs in the queue have completed.

Implementation

Future<void> run() async {
  for (var job in _jobs) {
    await job();
  }
}