Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usecase for windowWithTimeOrCount() in RxJS 5 #1909

Closed
RAlfoeldi opened this issue Aug 29, 2016 · 3 comments
Closed

Usecase for windowWithTimeOrCount() in RxJS 5 #1909

RAlfoeldi opened this issue Aug 29, 2016 · 3 comments

Comments

@RAlfoeldi
Copy link

As requested I do have a usecase for the dropped operator windowWithTimeOrCount()

What I am trying to do is bundle requests to a server without waiting longer than maxWait ms.

This is part of a rather elaborate DataService/Cacheing scheme that often retrieves thousands of data elements, but sometimes only 2-3. I don't want to get more than, say, 1000 elements, but also don't want to wait longer than, say, 50 ms. I would assume that this is a rather standard usecase.

I've implemented what I needed - as good as I could - and it works almost perfectly, but looses the last element of every 'chunk'. (As this isn't a support forum, I'm just linking to the StackOverflow question, which has my implementation included.)

@kwonoj
Copy link
Member

kwonoj commented Aug 29, 2016

I think issue #1301 tracks this, though it hasn't been updated while. I'll try to look into once I have some time after some priorities I have.

@benlesh
Copy link
Member

benlesh commented Feb 21, 2017

I believe this has been added.

@benlesh benlesh closed this as completed Feb 21, 2017
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants