ProcessorConfigs constructor
const
ProcessorConfigs({
- int numberOfBackgroundProcessors = 2,
- int maxConcurrency = 1,
- ProcessorMode processorMode = ProcessorMode.auto,
Creates a new instance of ProcessorConfigs with the given settings.
The numberOfBackgroundProcessors must be a positive integer.
The maxBackgroundProcessors
must be greater than or equal to numberOfBackgroundProcessors.
The maxConcurrency must be a positive integer.
The processorMode defaults to ProcessorMode.auto.
Implementation
const ProcessorConfigs({
this.numberOfBackgroundProcessors = 2,
this.maxConcurrency = 1,
this.processorMode = ProcessorMode.auto,
}) : assert(numberOfBackgroundProcessors > 0,
'minBackgroundProcessors must be positive'),
assert(maxConcurrency > 0, 'maxConcurrency must be positive');