-
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
question about buffer operators #3278
Comments
I mean, is there a reason for this design? I am sure it was discussed before. |
cc @mattpodwysocki ... bufferWhen is based off of one of behaviors of Referring to The Man himself for the design info. 🙌 |
this question is based on an answer on so: https://stackoverflow.com/q/48526452/170881 |
@mattpodwysocki ping ping :) |
@snackycracky Is your request still relevant? |
Hey @mattpodwysocki :) what is the design reasoning behind the limitation that operators such as bufferWhen that call a users function every time they open a new buffer/window don't let you react to values going through ? |
Could you provide the condition in the trigger observable? const fakeSource = of(1,2,42,3,4,2,3,6,42,1,2,3,1,42)
.pipe(delay(100),share());
const conditionMet = fakeSource.pipe(filter(v => v === 42));
fakeSource.pipe(
buffer(conditionMet)
).subscribe(x => console.log(x)); Does that help? |
Hi @snackycracky! I tried hard to get your desired answer. I pinged multiple people. And I had to give up on this. If you would be so kind and close this issue and help to keep the number of open issues small. Best Michael |
Thanks Michael for your hard work, but no. I will post the answer whenever I find it and then close this „hard to answer“ question.
… On 30. Nov 2019, at 04:40, Michael Hladky ***@***.***> wrote:
Hi @snackycracky!
I tried hard to get your desired answer. I pinged multiple people. And I had to give up on this.
I'm sorry I could not help you further.
If you would be so kind and close this issue and help to keep the number of open issues small.
Best Michael
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks @snackycracky! There might be the chance that i meet Matt in 2020 so I can ask. Other than that I have no chance to figure out the real intentions of Matt and the initial design in rxjs. Feel free to reopen ask or open a new issue. |
Hello, why do operators such as bufferWhen that call a users function every time they open a new buffer/window don't let you react to values going through ?
I would like to flush the buffer when some condition on the buffered accumulation is met.
The text was updated successfully, but these errors were encountered: