-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement a threadsafe version of wasm-bindgen-futures #1379
Comments
For those interested in getting their feet wet with the multithreading story of Rust and WebAssembly, this is definitely a meaty project to take on! |
So the task is to replace Cell and RefCell inside a Package struct? Would you mind if I try it? |
@ibaryshnikov all yours! I think that should do the trick, ignoring potential dead locks. I don't remember if there is |
To solve this issue the |
Currently the wasm-bindgen-futures crate provides a number of
unsafe
implementations to implement a runtime to execute futures within. Theseunsafe
blocks, however, are predicated on the application being single threaded. The crate isn't safe in a threaded environment!We should implement a threadsafe version of
wasm-bindgen-futures
, gated on thetarget_feature = "atomics"
feature of WebAssembly!The text was updated successfully, but these errors were encountered: