79752009

Date: 2025-08-31 20:48:11
Score: 2.5
Natty:
Report link

Since the writer idiomatically owns the channel, and the reader reads until the channel is closed, It doesn't matter if you send a few more records. The Done branch eventually gets selected returning control to the outer function, which, hopefully, has some kind of deferred close on the channel. Once the reader empties the channel and the channel is closed, the reader exits.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: HermeticHawke