pub fn poll_events()