<RxJava buffer/window with custom counting criteri...
# stackoverflow
u
RxJava buffer/window with custom counting criteria I have an Observable which is emitting a number of objects and I want to group these objects using the window or buffer operations. However, instead of specifying a count parameter for determining how many objects should be in window I want to be able to use a custom criteria. For example suppose the observable is emitting instances of a Message class like below. class Message( val int size: Int ) I would like to buffer or window the message instances based on their size variable not...