observed

@JvmName(name = "observedList")
fun <E> MutableProvider<out MutableList<E>>.observed(): Provider<MutableList<E>>

Creates and returns a new Provider that observes the list of this and propagates changes appropriately.

The returned provider will only be stored in a WeakReference in the parent provider (this).


@JvmName(name = "observedMap")
fun <K, V> MutableProvider<out MutableMap<K, V>>.observed(): Provider<MutableMap<K, V>>

Creates and returns a new Provider that observes the map of this and propagates changes appropriately.

The returned provider will only be stored in a WeakReference in the parent provider (this).


@JvmName(name = "observedSet")
fun <E> MutableProvider<out MutableSet<E>>.observed(): Provider<MutableSet<E>>

Creates and returns a new Provider that observes the set of this and propagates changes appropriately.

The returned provider will only be stored in a WeakReference in the parent provider (this).