Package com.vaadin.flow.signals.function
Interface CleanupCallback
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a cleanup operation that can be invoked to unregister a listener,
dispose of resources, or cancel an ongoing operation.
This is typically returned from registration methods such as
Signal.effect(EffectAction) to allow the caller to clean up the
registration when it's no longer needed.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Performs cleanup operations such as unregistering listeners or disposing resources.
-
Method Details
-
cleanup
void cleanup()Performs cleanup operations such as unregistering listeners or disposing resources.
-