Tags→#concurrency
Passing Results Between Rust Threads with Channels
Send owned values from worker threads through standard-library channels, and close every sender so the receiver can finish.
Borrowing Data in Scoped Rust Threads
Use std::thread::scope to share borrowed inputs with short-lived threads and safely split mutable data between workers.