Mutable Reactive Map
A mutable map that also a StateFlow via asStateFlow, allowing for reactive observation of its contents.
It delegates MutableMap functionality to an internal map and emits an immutable Map snapshot to its collectors whenever the map is modified.
Parameters
The type of keys in the map.
The type of values in the map.
Functions
Returns the collection's content as a StateFlow of an immutable collection IC type.
Executes a block of modifications on the underlying mutable collection and notifies observers only once after the block has completed.
Executes a suspending block of modifications on the underlying mutable collection and notifies observers only once after the block has completed.
Returns a new MutableReactiveMap filled with all elements of this collection.
Creates a Flow that emits the value associated with the specified key whenever this map changes.