3 ms·
I have only skimmed the page, but this caught my eye: Close is intended as a way for a sender to signal that no more values will be sent. Go 1 w
by Someone 15y ago
I have only skimmed the page, but this caught my eye:
Close is intended as a way for a sender to signal
that no more values will be sent.
Go 1 will disallow close on receive-only channels.
Why, then, would one still call this 'close'? Wouldn't "done", "dontexpectmore" or "sendEndOfData" be better names?
- uriel 15y agoYesterday in #go-nuts we were discussing better names for close() which currently causes so much confusion, my suggestion was end(), but done() is a good one too.