Completes the channel with a "done" state.
Completes the channel with a "done" state.
Any elements that have been sent can be received. After that, receivers will learn that the channel is done.
No new elements can be sent to this channel. Sending will end with a ChannelClosedException.Done exception.