Is there a rxjava `buffer` equivalent in Flow? flo...
# coroutines
u
Is there a rxjava
buffer
equivalent in Flow? flow.buffer is not the same behavior from what I see, i.e. I want to collect upstream emits into some buffer, and only emit the buffer when its full/time elapses etc
u
open, so .. no, bummer
btw any reason for changing the name? I mean reactive streams called this buffer since ever
g
The reason is to be consistent with existing kotlin operators
There is a PR with this operator, you can try to use it: https://github.com/Kotlin/kotlinx.coroutines/pull/1558