Message Passing With Rust MPSC Channels 🦀 Rust Tutorial

Описание к видео Message Passing With Rust MPSC Channels 🦀 Rust Tutorial

Rust provides a construct known as "channels," which enables developers to pass data between different threads. Rust channels act very similarly to message queues. When you create a channel, Rust returns handles to both a "sender" (aka. transmitter), and a "receiver." The sender can be used with the .send() method to add messages into the channel (aka. queue). The thread can take ownership of the receiver handle, and use the .recv() or .recv_timeout() methods to pull data (messages) off the channel. Because Rust channels use generics, you can send / receive any type of data between threads.

🤯 Rust Programming Playlist 🦀    • Rust Programming Tutorial 🦀  

📖 Rust std::sync::mpsc docs ➡️ https://doc.rust-lang.org/std/sync/mpsc/

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
➡️   / pcgeek86  
➡️    / trevorsullivan  
➡️   / 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

Комментарии

Информация по комментариям в разработке