elizarov
07/21/2020, 11:05 AMFlow.buffer operator that lets the publisher produce faster than consumer, but puts a backpressure on it when buffer overflows. So like onBackpressureBuffer, but without an error on overflow. What can I do?Abhishek Bansal
07/22/2020, 5:23 AMFlowable.create(BackpressureStrategy.BUFFER)
Its not an operator though but RxJava2 introduced a different kind of Observable for the purpose.
Or a buffer operator with timespan overload might also help.
http://reactivex.io/documentation/operators/buffer.htmlalexsullivan114
07/23/2020, 1:40 PMelizarov
07/23/2020, 1:59 PMalexsullivan114
07/25/2020, 9:14 PMonBackPressureBuffer is the closest I can imagine to that use case but obviously it doesn't let you signal the backpressure up to the producer. Actually, is this possible in Rx? I could be wrong but I think there are factory Flowable functions that just don't support listening for backpressure signals. Like, I don't think the Flowable.interval factory method can do anything about backpressure signals other than trigger an error...pg
07/26/2020, 2:29 PMBackpressureOverflowStrategy in onBackPressureBuffer from error to drop lastest / oldest, but it won't fit your needs. Unless we don't express backpressure in end consumers DisposableSubscriber by manually requesting more data, it looks like this case is not possible in Rx as @alexsullivan114 said, but I can be wrongkenkyee
07/27/2020, 11:17 AM