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

[Feature]: New Operator GroupOnObservable #840

Closed
dwcullop opened this issue Jan 29, 2024 · 2 comments · Fixed by #847
Closed

[Feature]: New Operator GroupOnObservable #840

dwcullop opened this issue Jan 29, 2024 · 2 comments · Fixed by #847

Comments

@dwcullop
Copy link
Member

As suggested in #409, we should consider something like GroupOnObservable with a prototype such as:

 IObservable<IGroupChangeSet<TObject, TKey, TGroupKey>> GroupOnObservable<TObject, TKey, TGroupKey>(
    this IObservable<IChangeSet<TObject, TKey>> source,
    Func<TObject, TKey, IObservable<TGroupKey>> groupOnObservable);

Which would group the values based on the last value returned from each sub-observable. When a new value is fired, the corresponding value would move from one group to another.

I was considering something like GroupAsync but this operator would cover that use-case (and a lot more).

Originally posted by @dwcullop in #672 (comment)

@dwcullop dwcullop changed the title Feature: New Operator GroupOnObservable [Feature]: New Operator GroupOnObservable Jan 29, 2024
@dwcullop dwcullop self-assigned this Feb 10, 2024
@dwcullop dwcullop linked a pull request Feb 10, 2024 that will close this issue
@dwcullop
Copy link
Member Author

Implemented by #847.

Copy link

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant