Skip to content
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

Current state of WASM threads #2433

Closed
d3lm opened this issue Jan 25, 2021 · 1 comment
Closed

Current state of WASM threads #2433

d3lm opened this issue Jan 25, 2021 · 1 comment
Labels

Comments

@d3lm
Copy link
Contributor

d3lm commented Jan 25, 2021

I wanted to ask what the current status is of WebAssembly threads with Rust. I know there is this article, which shows how to use threads with wasm-bindgen, however, it's not using the std threads API. I know threads have shipped in Chrome and Firefox and the C++ pthread_create does work. How about Rust? Are there any plans to support std::thread so that we can do something like this in Rust?

thread::spawn(|| {
  // ...
});
@d3lm d3lm added the question label Jan 25, 2021
@alexcrichton
Copy link
Contributor

I wrote up a bit awhile back at rust-lang/rust#77839, and unfortunately I don't think much has changed in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants