WorkerContext class final
Identity of a worker, passed to its WorkerSetup.
Constructors
- WorkerContext({required int id, required int workerCount})
-
Creates the context of worker
idout ofworkerCount.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Index of this worker, from
0toworkerCount - 1.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workerCount → int
-
Total number of workers the server was started with.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited