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

Improve synchronization handling in event dispatcher #83

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

zerodev1200
Copy link
Contributor

I apologize for the consecutive pull requests.

Regarding WritableView, I noticed that an exception occurs when adding items to the DataGrid while using ToWritableNotifyCollectionChanged(SynchronizationContextCollectionEventDispatcher.Current).

Upon checking, it seems necessary to separate the handling of UI operations on the DataGrid and asynchronous collection operations in SynchronizationContextCollectionEventDispatcher.Post().

The UI operations and asynchronous collection operations worked fine with the code in this PR, but I am concerned about whether this code is appropriate and if there are any unintended consequences.

Let me know if you need any tweaks!

@neuecc
Copy link
Member

neuecc commented Oct 21, 2024

I think it'll be okay, probably...!
I'll release it, thank you!

@neuecc neuecc merged commit a4d80bd into Cysharp:master Oct 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants