Skip to main content

open

Function open 

Source
pub fn open(
    state: &AppState,
    prep: Prep,
    proceed: Box<dyn FnOnce(How) + Send + 'static>,
) -> Opened
Expand description

Open the window for prep and ask the agent; proceed runs once when it ends. Asking again for the same target changes nothing; for another one replaces the closure and keeps the window and its deadline. BLOCKING (store writes); needs a tokio runtime for the window’s task.