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

Method find_active

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

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

(&self)

Source from the content-addressed store, hash-verified

622 ///
623 /// Returns sessions where `phase != Ended`.
624 pub fn find_active(&self) -> AgentResult<Vec<AgentSession>> {
625 let all = self.list()?;
626 Ok(all.into_iter().filter(|s| !s.is_ended()).collect())
627 }
628
629 /// Find all ended sessions.
630 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {

Callers 2

test_store_find_activeFunction · 0.80

Calls 3

listMethod · 0.45
into_iterMethod · 0.45
is_endedMethod · 0.45

Tested by 2

test_store_find_activeFunction · 0.64