Package edu.wpi.first.wpilibj.event
Class EventLoop
java.lang.Object
edu.wpi.first.wpilibj.event.EventLoop
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EventLoop
public EventLoop()Default constructor.
-
-
Method Details
-
bind
Bind a new action to run when the loop is polled.- Parameters:
action
- the action to run.
-
poll
Poll all bindings. -
clear
Clear all bindings.
-