The behavior of Channel<T> is composed by two interfaces, SendChannel<T> and ReceiveChannel<T>. In this section, we will take a look at the functions defined by each and how they are used to interact with a channel.
Interacting with channels
SendChannel
This interface defines a couple of functions to send elements through a channel and other functions in order to validate that it's possible to send something.
Validating before sending
There are a few validations that you can perform before trying to send elements through the channel. The most common...