async fn notify_clients(
  game_update: &shared_types::ServerEvent,
  client_ids: &Vec<String>,
  clients: &data_types::SafeClients,
) {
  for client_id in client_ids {
    if let Some(client) = clients.read().await.get(client_id) {
      notify_client(game_update, client);
    }
  }
}
/// Send and update to a set of clients

Send and update to a set of clients
Send and update to a set of clients
async fn notify_clients(
  game_update: &shared_types::ServerEvent,
  client_ids: &Vec<String>,
  clients: &data_types::SafeClients,
) {
  for client_id in client_ids {
    if let Some(client) = clients.read().await.get(client_id) {
      notify_client(game_update, client);
    }
  }
}
async fn notify_clients ( game_update : & shared_types :: ServerEvent , client_ids : & Vec < String > , clients : & data_types :: SafeClients , ) { for client_id in client_ids { if let Some ( client ) = clients . read ( ) . await . get ( client_id ) { notify_client ( game_update , client ) ; } } }
Send and update to a set of clients
Send and update to a set of clients
game_update
&shared_types::ServerEvent
client_ids
&Vec<String>
clients
&data_types::SafeClients
game_update
&shared_types::ServerEvent
client_ids
&Vec<String>
clients
&data_types::SafeClients