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

Method find_active

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

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

(&self)

Source from the content-addressed store, hash-verified

606 ///
607 /// Returns sessions where `phase != Ended`.
608 pub fn find_active(&self) -> AgentResult<Vec<AgentSession>> {
609 let all = self.list()?;
610 Ok(all.into_iter().filter(|s| !s.is_ended()).collect())
611 }
612
613 /// Find all ended sessions.
614 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {

Callers 3

resolve_active_sessionFunction · 0.80
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