News for hackers. Stuff that matters.
Re:Go 1.18 by gilgad13 on Tuesday March 15, 2022 @05:49PM (#30692257)
I agree, with the addition that closing an unbuffered `<-chan struct{}` is a good way to do broadcast notifications (a. la. the context package).

As evidence that channels should be used rarely, and only in small scopes, consider the number of places chan is used in the standard library.

There are no comments on this comment yet.