Macro base::poll_assert
source · macro_rules! poll_assert { ($tries: tt, $cond:expr) => { ... }; }
Expand description
Assert repeatedly until it’s true
Runs the provided $cond
closure until it returns true. If it does not return true after
$tries
times, it will panic.
There is no delay between polls, but the $cond
can sleep as needed.