-
Notifications
You must be signed in to change notification settings - Fork 26.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
[beta] [wasm] is isolates supported or I'm doing something wrong? (Unsupported operation: ReceivePort) #145132
Comments
Isolates are, currently, not supported on the web and that includes dart2wasm. |
Thought they would finally be fully supported in WASM. But it's good to hear that they are not supported |
We would like to support them, but a lot of this depends on whether or not Wasm provides necessary primitives for us to build upon. Specifically I mean proposals like these: https://github.com/WebAssembly/shared-everything-threads/blob/main/proposals/shared-everything-threads/Overview.md Today we could wire some limited form of isolates but with restrictions on what you can send between them - and all the messages will have to be copied. |
Based on above comment, I'll close this as not an issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
beta
channelmain.dart
flutter build web --wasm
dhttpd '--headers=Cross-Origin-Embedder-Policy=credentialless;Cross-Origin-Opener-Policy=same-origin'
frombuild/web
folderSame behavior with
Isolate.run
andcompute()
Is Isolates not supported in WASM or I'm doing Isolates in wrong way?
Expected results
Code will run in separate thread
Actual results
Throwing an Exception and not executes
Code sample
Code sample
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: