EventLoop

class EventLoop

A lightweight execution loop for polling boolean triggers and executing bound actions.

Functions similarly to WPILib's EventLoop, keeping a registry of Runnables that are executed sequentially on every poll call.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun bind(action: Runnable)

Binds a new action to be executed every time the loop is polled.

Link copied to clipboard
fun clear()

Clears all bound actions from the loop.

Link copied to clipboard
fun poll()

Executes all bound actions sequentially.