MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / cancel

Method cancel

crates/opencode-session/src/prompt.rs:757–765  ·  view source on GitHub ↗
(&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

Calls 2

removeMethod · 0.45
set_idleMethod · 0.45

Tested by

no test coverage detected