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

Method find_ended

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

Find all ended sessions.

(&self)

Source from the content-addressed store, hash-verified

628
629 /// Find all ended sessions.
630 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {
631 let all = self.list()?;
632 Ok(all.into_iter().filter(|s| s.is_ended()).collect())
633 }
634
635 /// Returns the number of stored session files.
636 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