EventLoop

class wpilib.event.EventLoop

Bases: pybind11_object

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

bind(action: Callable[[], None]) None

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

Parameters:

action – the action to run.

clear() None

Clear all bindings.

poll() None

Poll all bindings.