Skip to content

Glossary: Rust Beyond the Basics

channel

Also written: channels, mpsc::channel

A one-way pipe between threads: one end sends values and the other receives them. `mpsc::channel()` returns a sender `tx` and a receiver `rx`.

Where the book teaches it

Related terms

thread