ADTF  3.18.2
adtf::testing::mega Namespace Reference

Namespace for all functionality provided since v3.12. More...

Functions

template<typename Callable >
bool wait_until (Callable &&oCallable, std::chrono::milliseconds tmTimeOut, std::chrono::milliseconds tmInterval=std::chrono::milliseconds{100})
 Repeateatly calls oCallable until either it returns true or the timeout expires. More...
 

Detailed Description

Namespace for all functionality provided since v3.12.

Function Documentation

◆ wait_until()

bool adtf::testing::mega::wait_until ( Callable &&  oCallable,
std::chrono::milliseconds  tmTimeOut,
std::chrono::milliseconds  tmInterval = std::chrono::milliseconds{100} 
)

Repeateatly calls oCallable until either it returns true or the timeout expires.

Parameters
[in]oCallableThe condition that should be checked for.
[in]tmTimeOutThe timeout to wait for.
[in]tmIntervalThe interval at which the condition should be reevaluated.
Template Parameters
CallableA callable.

Definition at line 28 of file wait_until.h.