|
|
|
|
|
by gilgad13
1554 days ago
|
|
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. |
|