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.

@FunctionalInterface public interface CleanupCallback extends Serializable
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 Type
    Method
    Description
    void
    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.