Closed
Description
URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch16-01-threads.html, section "Using move Closures with Threads"
Description of the problem:
It begins with
The
move
closure is often used alongsidethread::spawn
because it allows you to use data from one thread in another thread.
"...it allows you to use data from one thread in another thread" part is misleading. It implies I may have 10 threads, each thread has its own data and the move
allows me to use data of, say, thread A in the thread B while I'm in the thread C. Or do I miss something?
Metadata
Metadata
Assignees
Labels
No labels