scheduleOnIdle method
void
scheduleOnIdle()
Schedules eviction to run when the app is idle.
This requires integration with a platform-specific idle detection mechanism.
Implementation
void scheduleOnIdle() {
if (_isRunning) {
_log.warning('Scheduler is already running. Stop it first.');
return;
}
_conditions.add(EvictionTiming.onIdle);
// This would typically involve setting up a listener for app idle events
// For now, we'll just log a message
_log.info('Scheduled eviction when app is idle (not implemented)');
_isRunning = true;
}