We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The offending example is:
use std::thread::Thread; fn main() { for _ in 0..10 { Thread::spawn(|| { println!("Hello World!"); }); } }
With the new detaching thread semantics, this is incorrect since main can exit before all the detached threads have printed.
The text was updated successfully, but these errors were encountered:
I think that this was in the intro as well.
Sorry, something went wrong.
Improve example in the intro.
e485d29
Thank you @bluss for the suggested implementation. Fixes rust-lang#20844
rollup merge of rust-lang#21020: steveklabnik/gh20844
6155ce5
Successfully merging a pull request may close this issue.
The offending example is:
With the new detaching thread semantics, this is incorrect since main can exit before all the detached threads have printed.
The text was updated successfully, but these errors were encountered: