toFlowList
fun Flow<Flow<TimelineEvent>>.toFlowList(maxSize: StateFlow<Int>, minSize: MutableStateFlow<Int> = MutableStateFlow(0)): Flow<List<Flow<TimelineEvent>>>
Converts a flow of timeline events into a flow of list of timeline events limited by maxSize.
Input: (E) -> (E) -> (E) -> delay e. g. due to fetching new events -> (E)
Output: ([EEE]) -> delay -> ([EEEE])Content copied to clipboard
fun Flow<Flow<Flow<TimelineEvent>>?>.toFlowList(maxSize: StateFlow<Int>, minSize: MutableStateFlow<Int> = MutableStateFlow(0)): Flow<List<Flow<TimelineEvent>>>
Converts a flow of flows of timeline event into a flow of list of timeline events limited by maxSize.
Input: (E) -> (E) -> (E) -> delay e. g. due to fetching new events -> (E)
Output: ([EEE]) -> delay -> ([EEEE])Content copied to clipboard