pub async fn wait_for<F>(condition: F, message: &str)where F: Fn() -> bool,
Wait for a condition with default timeout and poll interval
Uses a 1-second timeout and 1ms poll interval