Skip to content

Commit 0c4191f

Browse files
authored
Merge pull request #930 from unoplatform/dev/jela/threading-doc
docs: Adjust threading in net9
2 parents 016dd11 + e81203a commit 0c4191f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

doc/features-threading.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ uid: UnoWasmBootstrap.Features.Threading
44

55
# Support for WebAssembly Threads
66

7+
> [!CAUTION]
8+
> Threading support is experimental, and .NET 9 support [has changed the main thread's ability to execute managed code](https://github.com/dotnet/runtime/issues/85592#issuecomment-2031876112). As a result, the support in the Uno Bootstrapper is limited to simple DOM interactions, and is not supported on Uno Platform UI apps.
9+
710
Starting from .NET 7, experimental support for [WebAssembly threads](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md) has been included. This support is provided by the bootstrapper 7.0 and later, for interpreter and AOT modes. The following documentation explains how to enable threading.
811

912
> [!IMPORTANT]

doc/using-the-bootstrapper.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ If you're not using the Uno.SDK and that you are using AOT with `WasmShellMonoRu
114114

115115
If not set, you may get the error `error MSB4036: The "MonoAOTCompiler" task was not found"`.
116116

117+
### Threading
118+
119+
Microsoft’s runtime team [has made major changes](https://github.com/dotnet/runtime/issues/85592#issuecomment-2031876112) in .NET 9 to how threads interact with the DOM and JavaScript, aiming to improve stability.
120+
121+
Since threading was, and continues to be an experimental feature, these changes now prevent managed code from running on the main JavaScript thread — something Uno Platform depends on.
122+
123+
As a result, WebAssembly threading is currently not supported in Uno Platform apps. However, as Microsoft’s runtime team is working on it, we hope that the support for threading may return in future .NET 10 preview builds.
124+
117125
### IDBFS
118126

119127
In version 8.x and earlier of the bootstrapper, IDBFS support was enabled by default.

0 commit comments

Comments
 (0)