WPILibC++ 2024.3.2
frc::EventLoop Class Reference

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
 
EventLoopoperator= (const EventLoop &)=delete
 
void Bind (wpi::unique_function< void()> action)
 Bind a new action to run when the loop is polled. More...
 
void Poll ()
 Poll all bindings. More...
 
void Clear ()
 Clear all bindings. More...
 

Detailed Description

A declarative way to bind a set of actions to a loop and execute them when the loop is polled.

Constructor & Destructor Documentation

◆ EventLoop() [1/2]

frc::EventLoop::EventLoop ( )

◆ EventLoop() [2/2]

frc::EventLoop::EventLoop ( const EventLoop )
delete

Member Function Documentation

◆ Bind()

void frc::EventLoop::Bind ( wpi::unique_function< void()>  action)

Bind a new action to run when the loop is polled.

Parameters
actionthe action to run.

◆ Clear()

void frc::EventLoop::Clear ( )

Clear all bindings.

◆ operator=()

EventLoop & frc::EventLoop::operator= ( const EventLoop )
delete

◆ Poll()

void frc::EventLoop::Poll ( )

Poll all bindings.


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