Method
cancel
(&self, session_id: &str)
Source from the content-addressed store, hash-verified
| 755 | } |
| 756 | |
| 757 | pub async fn cancel(&self, session_id: &str) { |
| 758 | let mut state = self.state.lock().await; |
| 759 | if let Some(prompt_state) = state.remove(session_id) { |
| 760 | prompt_state.cancel_token.cancel(); |
| 761 | } |
| 762 | |
| 763 | let mut session_state = self.session_state.write().await; |
| 764 | session_state.set_idle(session_id); |
| 765 | } |
| 766 | |
| 767 | pub async fn prompt( |
| 768 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected