fn wait_for_round(trace_data: &Arc<RwLock<Trace>>, round: usize) -> Trace {
    let mut trace = trace_data.read().clone();
    while trace.round() < round - 1 {
        trace = trace_data.read().clone();
        sleep(Duration::from_millis(100));
    }
    trace
}
/// Block until trace data for round `round` is available.
Block until trace data for round `round` is available.
Block until trace data for round ` round ` is available .
fn wait_for_round(trace_data: &Arc<RwLock<Trace>>, round: usize) -> Trace {
    let mut trace = trace_data.read().clone();
    while trace.round() < round - 1 {
        trace = trace_data.read().clone();
        sleep(Duration::from_millis(100));
    }
    trace
}
fn wait_for_round ( trace_data : & Arc < RwLock < Trace > > , round : usize ) -> Trace { let mut trace = trace_data . read ( ) . clone ( ) ; while trace . round ( ) < round - 1 { trace = trace_data . read ( ) . clone ( ) ; sleep ( Duration :: from_millis ( 100 ) ) ; } trace }
Block until trace data for round `round` is available.
Block until trace data for round ` round ` is available .
trace_data
&Arc<RwLock<Trace>>
round
usize