Robot Core Documentation
Loading...
Searching...
No Matches
edu.wpi.first.wpilibj.event.EventLoop Class Reference

Public Member Functions

 EventLoop ()
 
void bind (Runnable action)
 
void poll ()
 
void clear ()
 

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()

edu.wpi.first.wpilibj.event.EventLoop.EventLoop ( )

Default constructor.

Member Function Documentation

◆ bind()

void edu.wpi.first.wpilibj.event.EventLoop.bind ( Runnable action)

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

Parameters
actionthe action to run.

◆ clear()

void edu.wpi.first.wpilibj.event.EventLoop.clear ( )

Clear all bindings.

◆ poll()

void edu.wpi.first.wpilibj.event.EventLoop.poll ( )

Poll all bindings.


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