#include <chrono>
#include <thread>
Go to the source code of this file.
|
| namespace | adtf |
| | Namespace for all functionality provided by ADTF and its SDKs.
|
| |
| namespace | adtf::testing |
| | Namespace for the ADTF Testing SDK.
|
| |
|
| 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}) |
| |
Copyright © Audi Electronics Venture GmbH. All rights reserved
◆ 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] | oCallable | The condition that should be checked for. |
| [in] | tmTimeOut | The timeout to wait for. |
| [in] | tmInterval | The interval at which the condition should be reevaluated. |
- Template Parameters
-