IMutable Viewable Set
interface IMutableViewableSet<T : Any> : MutableSet<T> , IViewableSet<T>
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
abstract fun advise(lifetime: Lifetime, handler: (IViewableSet.Event<T>) -> Unit)
Content copied to clipboard
Adds an event subscription. Every time an event occurs, the handler is called, receiving an instance of the event. The subscription is removed when the given lifetime expires.
Adds a subscription for additions and removals of set elements. When the subscription is initially added, handler is called with AddRemove.Add events for all elements currently in the set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard