Function urcl::waitFor
Defined in File helpers.h
Function Documentation
-
void urcl::waitFor(std::function<bool()> condition, const std::chrono::milliseconds timeout, const std::chrono::milliseconds check_interval = std::chrono::milliseconds(50))
Wait for a condition to be true.
This function will wait for a condition to be true. The condition is checked in intervals of
check_interval
. If the condition is not met aftertimeout
, the function will throw a urcl::TimeoutException.- Parameters:
condition – The condition to be checked.
timeout – The maximum time to wait for the condition to be true.
check_interval – The interval in which the condition is checked.