3 ms·
How does borrowing help with concurrency? You can only borrow on the same stack, no?
by lmm 11y ago
How does borrowing help with concurrency? You can only borrow on the same stack, no?
- osullivj 11y agohttp://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html http://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.ht...
- steveklabnik 11y agoYou can borrow something that's on the heap as well. And you can safely share pointers into stacks across threads with the right libraries, too. See https://crates.io/crates/crossbeam https://crates.io/crates/crossbeam