Functor class that waits until the input function results in the template parameter or timeout which ever occurs first.
More...
#include <test_utils.h>
|
| bool | operator() (std::function< bool(void)> const &input_function, std::chrono::seconds timeout) |
| | Waits until timeout or the input function returns done. More...
|
| |
template<bool done>
struct test_utils::WaitUntilResult< done >
Functor class that waits until the input function results in the template parameter or timeout which ever occurs first.
- Template Parameters
-
| done | Specifies the result that the input function should provide when the wait is over |
template<bool done>
| bool test_utils::WaitUntilResult< done >::operator() |
( |
std::function< bool(void)> const & |
input_function, |
|
|
std::chrono::seconds |
timeout |
|
) |
| |
|
inline |
Waits until timeout or the input function returns done.
- Parameters
-
| input_function | Logic function |
| timeout | Timeout in seconds until to stop waiting for function output |
- Returns
- the output of input function at the end of the function evaluation
The documentation for this struct was generated from the following file: