valueAsFlow

fun <K, V> MutableReactiveMap<K, V>.valueAsFlow(key: K): Flow<V?>

Creates a Flow that emits the value associated with the specified key whenever this map changes.

If the key is not present in the map, it emits null.

Return

A Flow that emits the value for the given key, or null if the key is absent.

Parameters

key

The key whose associated value is to be observed.