Class WPICleaner

java.lang.Object
edu.wpi.first.util.WPICleaner

public final class WPICleaner
extends Object
Cleaner object for WPILib objects.
  • Method Details

    • register

      public static Cleaner.Cleanable register​(Object object, Runnable runnable)
      Register an object with the cleaner.
      Parameters:
      object - The object to register.
      runnable - The runnable to call on cleanup.
      Returns:
      The registered Cleanable.