Reduce Android and iOS background work
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user