async fn saved_networks_manager_metrics_loop(saved_networks: Arc<dyn SavedNetworksManagerApi>) {
    loop {
        saved_networks.record_periodic_metrics().await;
        fasync::Timer::new(24.hours().after_now()).await;
    }
}
/// Calls the metric recording function immediately and every 24 hours.
Calls the metric recording function immediately and every 24 hours.
Calls the metric recording function immediately and every 24 hours .
async fn saved_networks_manager_metrics_loop(saved_networks: Arc<dyn SavedNetworksManagerApi>) {
    loop {
        saved_networks.record_periodic_metrics().await;
        fasync::Timer::new(24.hours().after_now()).await;
    }
}
async fn saved_networks_manager_metrics_loop ( saved_networks : Arc < dyn SavedNetworksManagerApi > ) { loop { saved_networks . record_periodic_metrics ( ) . await ; fasync :: Timer :: new ( 24 . hours ( ) . after_now ( ) ) . await ; } }
Calls the metric recording function immediately and every 24 hours.
Calls the metric recording function immediately and every 24 hours .
saved_networks
Arc<dyn SavedNetworksManagerApi>
saved_networks
Arc<dyn SavedNetworksManagerApi>