async fn tasks_monitor_dormant<R: Runtime>(
dormant_rx: Receiver<Option<DormantMode>>,
netdir: Arc<dyn NetDirProvider>,
chanmgr: Arc<ChanMgr<R>>,
bridge_desc_mgr: Arc<Mutex<Option<Arc<BridgeDescMgr<R>>>>>,
periodic_task_handles: Vec<TaskHandle>,
)
Expand description
Monitor dormant_mode
and enable/disable periodic tasks as applicable
This function is spawned as a task during client construction.