-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(bufferTime): add maxBufferSize
optional argument
#1556
Conversation
I think it would be better for our end users to allow this operator signature to be more polymorphic. The following should work:
basically, you're going to have to check the length of the arguments, and whether or not the last argument |
Other than that, it looks like a solid change. Thanks @figueredo |
Yeah, makes much sense, I didn't think of implementing it in that way. I'll change that. Thanks for reviewing, @Blesh. |
1fb6aae
to
3bd7cd1
Compare
Updated the PR making the signature more polymorphic. |
I was thinking on this change over this last week. I wonder if maybe RxJS needs to add the concept of buffers as a type of thing (ala js-csp). I think I'd like to put this change on hold until that's discussed. |
@figueredo I'm unblocking this and I think we can go ahead with a merge. Sorry for the delay. Do you think you can rebase for me? |
3bd7cd1
to
7dea39f
Compare
Merged with cf45540... thanks @figueredo for your contribution! Good stuff! |
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. |
Add
maxBufferSize
tobufferTime
as a way of implementingbufferTimeOrCount
as discussed in #1295.