FlowMapStreamEvent

sealed interface FlowMapStreamEvent<out K : Any, out V : Any>(source)

An event emitted by MapFlow.asFlowWithState.

Inheritors

Types

Link copied to clipboard

Emitted when the map is cleared.

Link copied to clipboard
value class EventUpdate<K : Any, V : Any>(val event: MapEvent.EntryEvent<K, V>) : FlowMapStreamEvent<K, V>

Emitted for subsequent updates, containing only the delta (event).

Link copied to clipboard
value class InitialState<K : Any, V : Any>(val map: Map<K, V>) : FlowMapStreamEvent<K, V>

Emitted on initial collection, containing the entire initial map state.