yarp-devices
Loading...
Searching...
No Matches
roboticslab::test::observer_timer Class Referencefinal

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

The documentation for this class was generated from the following file: