8 #ifndef WPIUTIL_WPI_EVENTLOOPRUNNER_H_
9 #define WPIUTIL_WPI_EVENTLOOPRUNNER_H_
13 #include "wpi/SafeThread.h"
14 #include "wpi/uv/Loop.h"
23 using LoopFunc = std::function<void(wpi::uv::Loop&)>;
52 #endif // WPIUTIL_WPI_EVENTLOOPRUNNER_H_
void ExecAsync(LoopFunc func)
Run a function asynchronously (once) on the loop.
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21
Executes an event loop on a separate thread.
Definition: EventLoopRunner.h:21
void ExecSync(LoopFunc func)
Run a function synchronously (once) on the loop.