MENU

Fun & Interesting

Rust Scoped Threads 🦀 Rust Tutorial

Trevor Sullivan 6,764 2 years ago
Video Not Working? Fix It Now

Rust provides a concept known as "scoped threads" in the standard library. You can use scoped threads to borrow heap-allocated memory, from the parent scope, and then return control back to the parent scope. If you don't use scopes to spawn threads, you will most likely run into issues with borrowing variables from the parent scope. 🤯 Rust Programming Playlist 🦀 https://www.youtube.com/playlist?list=PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL 📖 Rust std::thread::scope docs ➡️ https://doc.rust-lang.org/std/thread/fn.scope.html Visual Studio Code ➡️ https://code.visualstudio.com Rust Website ➡️ https://rust-lang.org Rustup Installer ➡️ https://rustup.rs Rust Docs ➡️ https://doc.rust-lang.org/book Please follow me on these other social channels! ➡️ https://trevorsullivan.net ➡️ https://github.com/pcgeek86 ➡️ https://twitter.com/pcgeek86 ➡️ https://youtube.com/trevorsullivan ➡️ https://facebook.com/trevorsoftware ➡️ https://tiktok.com/pcgeek86 All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement. #rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer

Comment