collectImportantUntilLast
inline suspend fun <T> Flow<T>.collectImportantUntilLast(includeLast: Boolean = true, collector: FlowCollector<T>)
Collects all elements not implementing SpecialFlowValue.NotImportant from a Flow up to the first SpecialFlowValue.Last received.
Parameters
includeLast
if true
the first SpecialFlowValue.Last will be collected before emission stops.
collector
The FlowCollector to collect the values.