Package edu.wpi.first.util
Class WPICleaner
java.lang.Object
edu.wpi.first.util.WPICleaner
public final class WPICleaner extends Object
Cleaner object for WPILib objects.
-
Method Summary
Modifier and Type Method Description static Cleaner.Cleanable
register(Object object, Runnable runnable)
Register an object with the cleaner.
-
Method Details
-
register
Register an object with the cleaner.- Parameters:
object
- The object to register.runnable
- The runnable to call on cleanup.- Returns:
- The registered Cleanable.
-