Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[browser][mt] Release all proxies of C# and JS objects on WebWorker #88052
[browser][mt] Release all proxies of C# and JS objects on WebWorker #88052
Changes from 6 commits
2ad4279
cf1f23a
f7f4887
bbdd090
47fa682
8c41906
a74c31d
6330ff8
adc81e9
6bc503b
e755819
bd204fa
a690dd5
28a6b64
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we changing these from post to send?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It became bit more stable after this change, but I'm sure if we should go one or the other way. This is more conservative.
In case of JSException, receiving thread would have chance to print the JS stack trace on the receiving side before the webWorker is detached.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that we will not include this class in public API of Net8, so we could continue improving it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concern is that Send can deadlock in ways that Post cannot, as I understand it. So I'm wary of using it unless it's necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this PR only renames it. I agree with the concern.
Steve gave similar feedback on the Blazor PR dotnet/aspnetcore#48991 (comment)
They have interesting solution for error handling.