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

Method find_ended

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

Find all ended sessions.

(&self)

Source from the content-addressed store, hash-verified

584
585 /// Find all ended sessions.
586 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {
587 let all = self.list()?;
588 Ok(all.into_iter().filter(|s| s.is_ended()).collect())
589 }
590
591 /// Returns the number of stored session files.
592 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