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

Method find_ended

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

Find all ended sessions.

(&self)

Source from the content-addressed store, hash-verified

612
613 /// Find all ended sessions.
614 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {
615 let all = self.list()?;
616 Ok(all.into_iter().filter(|s| s.is_ended()).collect())
617 }
618
619 /// Returns the number of stored session files.
620 pub fn count(&self) -> AgentResult<usize> {

Callers 4

test_store_find_endedFunction · 0.80
test_full_lifecycleFunction · 0.80
handle_session_startMethod · 0.80

Calls 3

listMethod · 0.45
into_iterMethod · 0.45
is_endedMethod · 0.45

Tested by 3

test_store_find_endedFunction · 0.64
test_full_lifecycleFunction · 0.64