MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / android_console_connection_cache

Function android_console_connection_cache

packages/server/src/android.rs:1979–1982  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1977}
1978
1979fn android_console_connection_cache() -> &'static Mutex<ConsoleConnectionCache> {
1980 static CACHE: OnceLock<Mutex<ConsoleConnectionCache>> = OnceLock::new();
1981 CACHE.get_or_init(|| Mutex::new(HashMap::new()))
1982}
1983
1984fn run_android_console_command(port: u16, command: &str) -> Result<(), AppError> {
1985 let mut cache = android_console_connection_cache().lock().unwrap();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected