Rust theorytheory 0/50 · 0%
Concurrency · medium

33. Channels and Message Passing

Communicate by sending values.

`std::sync::mpsc` provides multi-producer single-consumer channels; crossbeam and tokio add richer variants. Sending moves ownership, so no shared mutable state exists. Dropping all senders closes the channel and ends the receiver loop cleanly.

Check your understanding

  1. 1. mpsc stands for…

  2. 2. Sending a value…