The following program demonstrates the use of a channel for moving values across threads.
This zip file contains the complete crate.