Skip to main content

wait_for_count

Function wait_for_count 

Source
pub async fn wait_for_count(
    counter: &AtomicU32,
    target: u32,
    max_wait: Duration,
) -> bool
Expand description

Wait for an atomic counter to reach a target value