TaskSchedulerConfig class

Configuration for the task scheduler

Constructors

TaskSchedulerConfig.new({int maxConcurrentTasks = 10, int maxConcurrentTasksPerDomain = 2, bool useAdaptiveConcurrency = true, int minConcurrencyLevel = 1, int maxConcurrencyLevel = 20, double cpuThreshold = 0.8, double memoryThreshold = 0.8, int resourceCheckIntervalMs = 5000})
Creates a new TaskSchedulerConfig
const
TaskSchedulerConfig.aggressive()
Creates a TaskSchedulerConfig for high resource usage
factory
TaskSchedulerConfig.conservative()
Creates a TaskSchedulerConfig for low resource usage
factory

Properties

cpuThreshold double
The CPU usage threshold for reducing concurrency (0.0 to 1.0)
final
hashCode int
The hash code for this object.
no setterinherited
maxConcurrencyLevel int
The maximum concurrency level when using adaptive concurrency
final
maxConcurrentTasks int
The maximum number of concurrent tasks
final
maxConcurrentTasksPerDomain int
The maximum number of concurrent tasks per domain
final
memoryThreshold double
The memory usage threshold for reducing concurrency (0.0 to 1.0)
final
minConcurrencyLevel int
The minimum concurrency level when using adaptive concurrency
final
resourceCheckIntervalMs int
The interval for checking system resources in milliseconds
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useAdaptiveConcurrency bool
Whether to use adaptive concurrency based on system resources
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