A channel transfers values between concurrent activities through separate sending and receiving endpoints. Sending data makes it available to the receiver later without exposing the channel’s internal mechanism. section 10.4.4
A channel provides:
- A sender, conventionally called tx, and a receiver, conventionally called rx. section 10.4.4
- send() and recv() helper operations that hide message transmission. section 10.4.4
- A task-queue pattern that can accept multiple items before a receiver is ready. section 10.4.4
Sending an integer
Create an unbounded crossbeam channel, move tx into a spawned thread, send 42, and receive it with select!. The program prints Ok(42).









