MCPcopy Create free account
hub / github.com/GCWing/BitFun / unregister_search

Function unregister_search

src/apps/desktop/src/api/commands.rs:113–119  ·  view source on GitHub ↗
(state: &State<'_, AppState>, search_id: Option<&str>)

Source from the content-addressed store, hash-verified

111}
112
113fn unregister_search(state: &State<'_, AppState>, search_id: Option<&str>) {
114 let Some(search_id) = search_id.filter(|value| !value.is_empty()) else {
115 return;
116 };
117
118 lock_active_searches(state).remove(search_id);
119}
120
121fn unregister_search_registry(
122 active_searches: &Arc<Mutex<std::collections::HashMap<String, Arc<AtomicBool>>>>,

Callers 4

search_filesFunction · 0.85
search_filenamesFunction · 0.85
search_file_contentsFunction · 0.85

Calls 3

lock_active_searchesFunction · 0.85
is_emptyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected