Reduce Android and iOS background work

This commit is contained in:
shen
2026-12-03 16:46:29 -08:00
parent 9e05f1ad93
commit e68cb6c909
12 changed files with 189 additions and 60 deletions
+5
View File
@@ -30,6 +30,11 @@ impl Network {
pub async fn stop(&self) {
self.engine.stop().await;
}
/// Reports engine lifecycle without collecting telemetry.
pub fn is_running(&self) -> bool {
self.engine.is_running()
}
/// Destinations to route through this network; changes as advertisements
/// are accepted or withdrawn. Use instead of polling `snapshot`.
pub fn watch_mesh_routes(&self) -> tokio::sync::watch::Receiver<MeshRoutes> {