Closes the channel. No more values can be sent. Pending receives will drain remaining values, then return 0 for subsequent calls.