Interface Mutable.Subscription

Enclosing interface:
Mutable<T>

public static sealed interface Mutable.Subscription
The Subscription interface represents a way to unsubscribe from change notifications on a Mutable object.

Implementations of this interface allow unsubscribing from the Mutable.onChange([email protected] BiConsumer<T,T>) notifications once they are no longer needed.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Unsubscribes from the change notifications.
  • Method Details

    • unsubscribe

      void unsubscribe()
      Unsubscribes from the change notifications.