Skip to main content

SearchHandleRegistry

Type Alias SearchHandleRegistry 

Source
pub type SearchHandleRegistry = Arc<Mutex<HashMap<u64, Arc<SearchHandleState>>>>;
Expand description

Registry mapping a handle ID to its shared SearchHandleState. Shared between the JS thread (where JsEditorApi registers handles and serves take()/cancel()) and the editor thread (where the host’s searcher tasks write into the same state).

Aliased Type§

pub struct SearchHandleRegistry { /* private fields */ }