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

Method assert_not_busy

crates/opencode-session/src/session.rs:226–233  ·  view source on GitHub ↗
(&self, session_id: &str)

Source from the content-addressed store, hash-verified

224 }
225
226 pub fn assert_not_busy(&self, session_id: &str) -> Result<(), BusyError> {
227 if self.is_busy(session_id) {
228 return Err(BusyError {
229 session_id: session_id.to_string(),
230 });
231 }
232 Ok(())
233 }
234
235 pub fn set_busy(&mut self, session_id: &str) {
236 self.set(session_id, RunStatus::Busy);

Callers

nothing calls this directly

Calls 1

is_busyMethod · 0.45

Tested by

no test coverage detected