add method

void add(
  1. Future<void> job()
)

Adds a job to the queue.

The job is a function that returns a Future<void>. It will be executed in the order it was added when the run method is called.

Implementation

void add(Future<void> Function() job) {
  _jobs.add(job);
}