MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / find_active

Method find_active

atomic-agent/src/turn/session.rs:1137–1140  ·  view source on GitHub ↗

Find all active (non-ended) sessions. Returns sessions where `phase != Ended`.

(&self)

Source from the content-addressed store, hash-verified

1135 ///
1136 /// Returns sessions where `phase != Ended`.
1137 pub fn find_active(&self) -> AgentResult<Vec<AgentSession>> {
1138 let all = self.list()?;
1139 Ok(all.into_iter().filter(|s| !s.is_ended()).collect())
1140 }
1141
1142 /// Find all ended sessions.
1143 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {

Callers 2

test_store_find_activeFunction · 0.80

Calls 4

listMethod · 0.45
collectMethod · 0.45
into_iterMethod · 0.45
is_endedMethod · 0.45

Tested by 2

test_store_find_activeFunction · 0.64