-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ch20-02-multithreaded call_box no longer needed #2208
Comments
Thanks! This was fixed in #1906, but the book rides the release trains. The fix is available on https://doc.rust-lang.org/beta/book/ch20-02-multithreaded.html, and it will be available on https://doc.rust-lang.org/stable/book/ch20-02-multithreaded.html with the release of Rust 1.41. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a huge section about working around this problem:
Currently (
rustc 1.40.0 (73528e339 2019-12-16)
) you can just dojob()
and it works perfectly, no need forFnBox
andcall_box
workaround anymore.Final code for
Worker
impl:The text was updated successfully, but these errors were encountered: