Class EventLoop
java.lang.Object
org.wpilib.event.EventLoop
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
-
Constructor Summary
Constructors -
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.
-
unbind
Unbind an action from running when the loop is polled. Has no effect if the given action is not already bound.- Parameters:
action- the action to unbind.
-
poll
public void poll()Poll all bindings. -
clear
public void clear()Clear all bindings.
-