I am trying to create a moving window of data using Kotlin Flows. It can be achieved in RxKotlin using a buffer, but buffer is not the same using Flows.
RxKotlin has a buffer
operator, periodically gathers items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time - buffer(count, skip)
Kotlin Flow has a buffer
but that just runs a collector in a separate coroutine - buffer
Is there an existing operator in Flows that can achieve this?