A Channel is an asynchronous communication channel that supports receiving messages of type In and sending messages of type Out.
Channel
In
Out
Await shutdown of the channel.
Read a message from the channel, suspending until the next message is available.
Send a message to the channel.
Shut down the channel.
Constructs a new channel that automatically transforms messages sent to this channel using the specified function.
Constructs a new channel that automatically transforms messages received from this channel using the specified function.
Reads all messages from the channel, handling them with the specified function.