pub async fn wait_for_count( counter: &AtomicU32, target: u32, max_wait: Duration, ) -> bool
Wait for an atomic counter to reach a target value