{"ast_node_type":"function","tokens":[{"end":74,"kind":"keyword","start":0,"text":"fn"}]}
    fn next_event(&self, inbox: &Receiver<StateChange>) -> Option<Event> {
        let Some(command_receiver) = &self.command_receiver else {