-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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] Enable threads in Wasm SDK #85109
Conversation
maraf
commented
Apr 20, 2023
•
edited
Loading
edited
- Allows threads for blazor
- Publish dotnet.worker.js when threads are enabled
- Append fingerprint for dotnet.worker.js
- Support for dotnet run requires [blazor] Set Cross-Origin-Policy headers for multi-threaded runtime aspnetcore#47855
Tagging subscribers to 'arch-wasm': @lewing Issue Detailsnull
|
How do I try this out? |
The same story as for webcil. Until SDK PR lands and makes through installer, you need a lot of manual patching. I can show you tomorrow if you want. |
wait for dotnet/sdk#31912 to have an installer build then you can use wbt on this pr |
That one is not enough. This is needed dotnet/sdk#31519 |
I tried this one the same way as #84977 (comment) but I don't see With |
Getting some blazor errors about
This seems to happen pretty much as soon as I click around between pages when using the threaded runtime. threads don't actually need to be used. I think it's maybe something from the NavMenu, probably this one:
Ah interesting. if I set a breakpoint just before we do that So somewhere the blazor code ends up running some async code on a new thread after all. and then I think it might be I'm not sure that |
Also the blazor weather forecast page from the default template breaks because http fetching has a
|
Here is the draft, but I need to try on top of your branch. #85244
Edit: |
@maraf Any reason this is still draft? I think this PR is working, even if the libraries and blazor need a bit of work. |
Fingerprinting stuff is working. I see fetches for |
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/AssetsComputingHelper.cs
Outdated
Show resolved
Hide resolved
…tingHelper.cs Co-authored-by: Aleksey Kliger (λgeek) <[email protected]>
Failures are unrelated |