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

Method is_busy

crates/opencode-session/src/status.rs:137–143  ·  view source on GitHub ↗

Check if a session is busy (busy or retrying).

(&self, session_id: &str)

Source from the content-addressed store, hash-verified

135
136 /// Check if a session is busy (busy or retrying).
137 pub async fn is_busy(&self, session_id: &str) -> bool {
138 let state = self.state.read().await;
139 matches!(
140 state.get(session_id),
141 Some(SessionStatusInfo::Busy | SessionStatusInfo::Retry { .. })
142 )
143 }
144}
145
146impl Default for SessionStatusManager {

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected