pub async fn broadcast_event<E: Clone + Debug>(event: E, sender: &Sender<E>)
Helper function to send events and log errors