MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / drain_events

Method drain_events

crates/opencode-session/src/session.rs:1113–1115  ·  view source on GitHub ↗

Get events (and clear them)

(&mut self)

Source from the content-addressed store, hash-verified

1111
1112 /// Get events (and clear them)
1113 pub fn drain_events(&mut self) -> Vec<SessionEvent> {
1114 self.events.drain(..).collect()
1115 }
1116
1117 /// Get session count
1118 pub fn count(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected