addDependency method
Add a dependency to this job.
The given job must complete before this job will executed.
See also:
- removeDependency which removes a single job.
- addDependencies which adds all of the given jobs as dependencies of this job.
Implementation
@override
void addDependency(DependentJob job) {
for (final DependentJob worker in jobs) {
worker.addDependency(job);
}
super.addDependency(job);
}