runningFoldToMap
fun <K : Any, V : Any> Flow<MapEvent<K, V>>.runningFoldToMap(emitPartials: Boolean = false): Flow<Map<K, V>>(source)
Folds a flow of MapEvents into a flow of Map.
Parameters
Folds a flow of EntryEvents into a flow of Map.
fun <K : Any, V : Any> Flow<SimpleMapEvent<K, V>>.runningFoldToMap(emitPartials: Boolean = false): Flow<Map<K, V>>(source)
Folds a flow of MapEvents into a flow of Map.
When emitPartials is false
, it will not emit the first Map until a Populated event is received.
fun <K : Any, V : Any> Flow<SimpleMapEvent.EntryEvent<K, V>>.runningFoldToMap(): Flow<Map<K, V>>(source)
Folds a flow of EntryEvents into a flow of Map.