Method
WriteChannelInterface::close
Closes the channel, for both ends.
Description#
public WriteChannelInterface::close(): voidReaders still get the values already written, and after them the end of the channel. A write to a closed channel throws a ChannelException.
See also#
WriteChannelInterface::isClosedReturns true if the channel has been closed.