WorkerJobGroup class
A job that groups other jobs.
The jobs will be run in the order given to the constructor.
This group job finishes when all the workers finish.
- Inheritance
-
- Object
- DependentJob
- WorkerJobGroup
Constructors
-
WorkerJobGroup(Iterable<
DependentJob> jobs, {Iterable<DependentJob> ? dependsOn, String name = 'Group'})
Properties
-
dependsOn
→ Set<
DependentJob> -
Other jobs that this job depends on.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jobs
→ List<
DependentJob> -
The jobs that will run in order because they depend on each other.
final
- name → String
-
The name of the job.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDependencies(
Iterable< DependentJob> jobs) → void -
Adds all of the
jobs
as dependencies of this job.inherited -
addDependency(
DependentJob job) → void -
Add a dependency to this job.
override
-
addToQueue(
List< DependentJob> jobQueue) → void -
Adds this job, and any jobs it manages to the given
jobQueue
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDependencies(
Iterable< DependentJob> jobs) → void -
Removes all of the given
jobs
as dependencies of this job.inherited -
removeDependency(
DependentJob job) → void -
Remove a dependency to this job that was added with addDependency.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited