pub fn extract_completion(&self, exec_id: ExecId) -> Option<CompletionFunction> {
        let mut mut_states = self.states.lock().unwrap();
        if let Some(entry) = mut_states.get_mut(&exec_id) {
            entry.completion.take()
        } else {
            None
        }
    }
/// Extracts the completion closure for this execution.
Extracts the completion closure for this execution.
Extracts the completion closure for this execution .
pub fn extract_completion(&self, exec_id: ExecId) -> Option<CompletionFunction> {
        let mut mut_states = self.states.lock().unwrap();
        if let Some(entry) = mut_states.get_mut(&exec_id) {
            entry.completion.take()
        } else {
            None
        }
    }
pub fn extract_completion ( & self , exec_id : ExecId ) -> Option < CompletionFunction > { let mut mut_states = self . states . lock ( ) . unwrap ( ) ; if let Some ( entry ) = mut_states . get_mut ( & exec_id ) { entry . completion . take ( ) } else { None } }
Extracts the completion closure for this execution.
Extracts the completion closure for this execution .
&self
exec_id
ExecId
&self
exec_id
ExecId