Channel.close

void close() @trusted

Close the channel, preventing further sends.

Pending receivers will be woken up and their receives will fail with ChannelErrorReason.CLOSED once the channel is drained.