TaskSchedulerConfig.conservative constructor

TaskSchedulerConfig.conservative()

Creates a TaskSchedulerConfig for low resource usage

Implementation

factory TaskSchedulerConfig.conservative() {
  return const TaskSchedulerConfig(
    maxConcurrentTasks: 5,
    maxConcurrentTasksPerDomain: 1,
    useAdaptiveConcurrency: true,
    minConcurrencyLevel: 1,
    maxConcurrencyLevel: 10,
    cpuThreshold: 0.7,
    memoryThreshold: 0.7,
  );
}