ConcurrencySettings class
Concurrency settings governing parallelization of workers in a WorkerPool.
Constructors
- ConcurrencySettings({int minWorkers = 0, int maxWorkers = 0, int maxParallel = 1})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConcurrency → int
-
Maximum number of running tasks.
no setter
- maxParallel → int
-
Maximum number of tasks that can be posted to a worker.
final
- maxWorkers → int
-
Maximum number of workers in the pool. If this is set to 0, the number of workers is unbounded
(as a result, any task posted to the pool will be assigned a worker asap).
final
- minWorkers → int
-
Minimum number of workers in the pool.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- eightIoThreads → const ConcurrencySettings
- 50 tasks per worker, 1 to 8 workers.
- fourIoThreads → const ConcurrencySettings
- 50 tasks per worker, 1 to 4 workers.
- oneCpuThread → const ConcurrencySettings
- 1 task per worker, 1 worker.
- oneIoThread → const ConcurrencySettings
- 50 tasks per worker with at most 1 worker.
- sevenCpuThreads → const ConcurrencySettings
- 1 task per worker, 1 to 7 workers.
- threeCpuThreads → const ConcurrencySettings
- 1 task per worker, 1 to 3 workers.
- twoIoThreads → const ConcurrencySettings
- 50 tasks per worker with at most 2 workers.