add method
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);
}
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.
void add(Future<void> Function() job) {
_jobs.add(job);
}