SendChannel
Sender's interface to a Channel.
Combined, SendChannel and ReceiveChannel define the complete Channel interface.
It is not expected that this interface will be implemented directly. Instead, the existing Channel implementations can be used or delegated to.
Inheritors
Functions
Registers a handler that is synchronously invoked once the channel is closed or the receiving side of this channel is cancelled. Only one handler can be attached to a channel during its lifetime. The handler
is invoked when isClosedForSend starts to return true
. If the channel is closed already, the handler is invoked immediately.
Adds element to this channel, blocking the caller while this channel is full, and returning either successful result when the element was added, or failed result representing closed channel with a corresponding exception.