Class EventLoop

java.lang.Object
edu.wpi.first.wpilibj.event.EventLoop

public final class EventLoop
extends Object
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
  • Constructor Details

  • Method Details

    • bind

      public void bind​(Runnable action)
      Bind a new action to run when the loop is polled.
      Parameters:
      action - the action to run.
    • poll

      public void poll()
      Poll all bindings.
    • clear

      public void clear()
      Clear all bindings.