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
+4
View File
@@ -478,6 +478,10 @@ impl Engine {
route_task: Mutex::new(Some(route_task)),
})
}
pub fn is_running(&self) -> bool {
self.instance.state() == easytier_core::instance::CoreInstanceState::Running
}
/// Notifies on every change of the destinations to route through the mesh.
pub fn watch_mesh_routes(&self) -> tokio::sync::watch::Receiver<MeshRoutes> {
self.routes.subscribe()