start method
void
start()
Starts the scheduler
Implementation
void start() {
if (_isRunning) return;
_isRunning = true;
logger?.info('Task scheduler started');
// Start the resource check timer if adaptive concurrency is enabled
if (config.useAdaptiveConcurrency) {
_resourceCheckTimer = Timer.periodic(
Duration(milliseconds: config.resourceCheckIntervalMs),
(_) => _updateConcurrencyLevel(),
);
}
// Start processing tasks
_processNextTask();
}