These are chat archives for ReactiveX/RxJava

10th
May 2017
Neil Davies
@neild001
May 10 2017 14:54
Hi, I've got a timed buffer, is there anyway I can force this buffer to complete before the timespan? So I can get the items in the list immediately and not have to wait for the full timespan.
Vladimir Baryshnikov
@vovkab
May 10 2017 17:23
@neild001 you can also specify count, if you need even more control you can provide closing observable.
Neil Davies
@neild001
May 10 2017 18:30
I'll have a look at the closing observable
I need something were the user can just say give me what you've got now without waiting for the full length of the timespan. So count won't work, I'll try take a look at closing observables. Hopefully that will so what I need. Thanks. 👍
Vladimir Baryshnikov
@vovkab
May 10 2017 18:50
If you have for example observabe for user actions, you can connect it as closing observable, and everytime user does something, i.e. click a button, it will emit everything that is currently in buffer.
Neil Davies
@neild001
May 10 2017 20:08
Ok, that sounds promising. That's pretty​ much what I want to do. Thanks again for pointing me in the right direction.