Package frc.lib.service
Class ServiceManager
java.lang.Object
frc.lib.service.ServiceManager
Manages the registration and updating of background services.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for services that are updated every loop. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(BaseService service) Registers a service to be updated every loop.static voidExecutes all registered services in parallel and waits for all to complete.
-
Constructor Details
-
ServiceManager
public ServiceManager()
-
-
Method Details
-
register
Registers a service to be updated every loop.- Parameters:
service- The service to register.
-
updateAll
public static void updateAll()Executes all registered services in parallel and waits for all to complete. This acts as a synchronous barrier.
-