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
[wasm][mt] throw from blocking wait on JS interop threads #97052
[wasm][mt] throw from blocking wait on JS interop threads #97052
Changes from all commits
b049c6a
150a177
a88e493
61b797c
1ed5faa
9d24021
70ad3a6
dbe7c4c
eb995fb
5887749
4009ae3
dd82372
e77f866
5c95514
e1af48a
9ec32c1
91508ac
4f74e02
00e6b4b
1dd3af2
5643036
7f067df
d3a68e9
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.
I'm re-thinking if this should be allowed after all. Because that could call code on the other thread, which would be long blocking.
At the moment, this is necessary for the HTTP/WS clients to work across threads. But now I will change the implementation to use emscripten instead of
JSSynchronizationContext
to make that dispatch.It will also have the same problem, tho.
So I guess we merge this for now and I will improve it bit later.
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.
should this be in
try-finally
?could .Wait ever throw ?
@radekdoulik
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.
I'll will change that on my PR #97832
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.
Let's make helper method for this and localize the message.
The method should be "public" but suppressed same like
ThrowOnBlockingWaitOnJSInteropThread
.So that we could use it in other places in the runtime.