Skip to content

Misleading sentence #2843

Closed
rust-lang/rust
#93532
@fade2black

Description

@fade2black

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 alongside thread::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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions