pub fn poll_events(
event_log: &KernelEventLog,
cursor: usize,
) -> (Vec<SseMessage>, usize)Expand description
Snapshot the event log and produce SSE messages for any new events since the given cursor position.
Returns (messages, new_cursor) where new_cursor is the total
event count after this snapshot. Pass new_cursor as the cursor
on the next poll to get only fresh events.