ZenWorkerGroup class

Group of workers that can be disposed together

Constructors

ZenWorkerGroup()

Properties

activeCount → int
Number of active workers in the group (not disposed, not paused)
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether the group is disposed
no setter
length → int
Number of total workers in the group (not disposed)
no setter
pausedCount → int
Number of paused workers in the group
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workers → List<ZenWorker>
Get all workers in this group (for statistics)
no setter

Methods

add(ZenWorker worker) → void
Add a worker to this group
dispose() → void
Dispose all workers in the group
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseAll() → void
Pause all workers in the group
resumeAll() → void
Resume all workers in the group
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited