EventLoop

class wpilib.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: collections.abc.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.