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

Method find_ended

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

Find all ended sessions.

(&self)

Source from the content-addressed store, hash-verified

1141
1142 /// Find all ended sessions.
1143 pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> {
1144 let all = self.list()?;
1145 Ok(all.into_iter().filter(|s| s.is_ended()).collect())
1146 }
1147
1148 /// Returns the number of stored session files.
1149 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 4

listMethod · 0.45
collectMethod · 0.45
into_iterMethod · 0.45
is_endedMethod · 0.45

Tested by 3

test_store_find_endedFunction · 0.64
test_full_lifecycleFunction · 0.64