async fn wait_for_clients(&self, id: Id) {
        for client_behavior in &self.clients {
            if client_behavior.join_before_event == id {
                debug!("server waiting before event {}", id);
                client_behavior.barrier.wait().await;
                debug!("server waiting for client to connect before event {}", id);
                client_behavior.barrier.wait().await;
                debug!("server finished waiting before event {}", id);
            }
        }
    }
/// Waits for all clients which specified they wanted to join just before the given event ID.
Waits for all clients which specified they wanted to join just before the given event ID.
Waits for all clients which specified they wanted to join just before the given event ID .
async fn wait_for_clients(&self, id: Id) {
        for client_behavior in &self.clients {
            if client_behavior.join_before_event == id {
                debug!("server waiting before event {}", id);
                client_behavior.barrier.wait().await;
                debug!("server waiting for client to connect before event {}", id);
                client_behavior.barrier.wait().await;
                debug!("server finished waiting before event {}", id);
            }
        }
    }
async fn wait_for_clients ( & self , id : Id ) { for client_behavior in & self . clients { if client_behavior . join_before_event == id { debug ! ( " " id ) ; client_behavior . barrier . wait ( ) . await ; debug ! ( " " id ) ; client_behavior . barrier . wait ( ) . await ; debug ! ( " " id ) ; } } }
Waits for all clients which specified they wanted to join just before the given event ID.
Waits for all clients which specified they wanted to join just before the given event ID .
&self
id
Id
&self
id
Id