Heikki Rauhala
04/22/2021, 12:20 PMNote that the latest element is not emitted if it does not fit into the sampling window.mean in the documentation of
Flow.sample
? https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/sample.html
How can an element not fit in a sampling window? There will always be the next window, right? Unless the sampling is cancelled while there are un-emitted events in the latest window, but are there other situations where the latest event is not emitted?uli
04/22/2021, 7:11 PMHeikki Rauhala
04/26/2021, 1:46 PM