advise

open fun advise(lifetime: Lifetime, handler: (AddRemove, T) -> Unit)

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.