phasync
WriteChannelInterface / close

Method

WriteChannelInterface::close

Closes the channel, for both ends.

Description#

public WriteChannelInterface::close(): void

Readers 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#