Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ get_session
Method
get_session
crates/opencode-server/src/pty.rs:178–180 ·
view source on GitHub ↗
(&self, id: &str)
Source
from the content-addressed store, hash-verified
176
}
177
178
pub async fn get_session(&self, id: &str) -> Option<PtySession> {
179
self.sessions.read().await.get(id).map(|(s, _)| s.clone())
180
}
181
182
pub async fn list_sessions(&self) -> Vec<PtySession> {
183
self.sessions
Callers
1
get_pty
Function · 0.45
Calls
3
read
Method · 0.80
get
Method · 0.45
clone
Method · 0.45
Tested by
no test coverage detected