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