|
yarp-devices
|
Functor wait-with-callback class.
#include <FutureObserverLib.hpp>
Public Member Functions | |
| template<typename Fn > | |
| observer_timer (int _milliseconds, Fn &&_fn) | |
| Register function object and configure wait time. | |
| void | operator() () |
| Wait and call stored function. | |
Private Attributes | |
| int | milliseconds |
| std::function< bool()> | fn |