![]() |
WPILibC++ 2025.3.2
|
A declarative way to bind a set of actions to a loop and execute them when the loop is polled. More...
#include <frc/event/EventLoop.h>
Public Member Functions | |
| EventLoop () | |
| EventLoop (const EventLoop &)=delete | |
| EventLoop & | operator= (const EventLoop &)=delete |
| void | Bind (wpi::unique_function< void()> action) |
| Bind a new action to run when the loop is polled. | |
| void | Poll () |
| Poll all bindings. | |
| void | Clear () |
| Clear all bindings. | |
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
| frc::EventLoop::EventLoop | ( | ) |
|
delete |
| void frc::EventLoop::Bind | ( | wpi::unique_function< void()> | action | ) |
Bind a new action to run when the loop is polled.
| action | the action to run. |
| void frc::EventLoop::Clear | ( | ) |
Clear all bindings.
| void frc::EventLoop::Poll | ( | ) |
Poll all bindings.