Add examples of how to read from a channel with a timeout, refs #13862

Finally what I promised to do in #13862 /cc @alexcrichton
Could you have a hidden statement which sends a message on `tx`? Just to make it so this doc example doesn't take 10 seconds to run.