phasync
ReadChannelInterface / close

Method

ReadChannelInterface::close

Closes the channel, for both ends.

Description#

public ReadChannelInterface::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#