State Flow Table
class StateFlowTable<ID0 : Any, ID1 : Any, V : Any> constructor(clock: <Error class: unknown class>)
A two-level concurrent state table based on MutableStateFlow.
The first level (ID0) groups entries into sub-tables.
The second level (ID1) holds values of type V along with their timestamp (WithTimestamp).
Each sub-table is a MutableStateFlow of a map, so updates can be observed reactively.
Parameters
ID0
the type of the outer key
ID1
the type of the inner key
V
the type of the stored value
Constructors
Functions
Link copied to clipboard
Removes all entries (across all IDs) that were set before the given timestamp.