ADTF
Loading...
Searching...
No Matches
wait_until.h File Reference
#include <chrono>
#include <thread>
Include dependency graph for wait_until.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  adtf
 Namespace for all functionality provided by ADTF and its SDKs.
 
namespace  adtf::testing
 Namespace for the ADTF Testing SDK.
 

Functions

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

Detailed Description

Copyright © Audi Electronics Venture GmbH. All rights reserved

Function Documentation

◆ wait_until()

template<typename Callable>
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.