Re:Does the Bronze Garbage Collector Make Rust Easier to Use?
by klodolph on Thursday December 23, 2021 @01:43PM
(#29664990)
Rust has crossbeam, but it is not a complete solution to the problem. Scoped threads were removed.
Re:Does the Bronze Garbage Collector Make Rust Easier to Use?
by ssokolow on Thursday December 23, 2021 @02:29PM
(#29665520)
Would you mind elaborating?
It was removed from the standard library ages ago, but `crossbeam::scope` appears to still be there in the newest release of crossbeam and the git repo.
Rust has scoped threads for this use case. Generally this uses closures as opposed to lifetimes to "bound borrows from above" in a safe way.