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

AsObservable get count of changed childs #290

Open
AlanFloyd opened this issue Jul 9, 2022 · 2 comments
Open

AsObservable get count of changed childs #290

AlanFloyd opened this issue Jul 9, 2022 · 2 comments
Labels

Comments

@AlanFloyd
Copy link

Hello,

i have implemented with success the AsObservable in my app and it is working perfect. I would like to update the user interface, once all changes of childs are received. Is there an option to get the number of all changes to childs (number of childs that are changed) or will this count be always 1, even when more than 1 child was updated.

Greetings and thanks
Dietmar

@cabauman
Copy link
Contributor

cabauman commented Jul 9, 2022

One option is buffering the changes so you can receive a batch. Buffer returns IObservable<IList>

.AsObservable().Buffer(TimeSpan.FromSeconds(1))

@stale
Copy link

stale bot commented Jan 8, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants