MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / set

Method set

crates/opencode-session/src/session.rs:211–213  ·  view source on GitHub ↗
(&mut self, session_id: &str, status: RunStatus)

Source from the content-addressed store, hash-verified

209 }
210
211 pub fn set(&mut self, session_id: &str, status: RunStatus) {
212 self.states.insert(session_id.to_string(), status);
213 }
214
215 pub fn get(&self, session_id: &str) -> RunStatus {
216 self.states.get(session_id).cloned().unwrap_or_default()

Callers 3

set_busyMethod · 0.45
set_retryingMethod · 0.45
set_idleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected