|
|
|
|
|
by shurcooL
4704 days ago
|
|
A channel may be closed with the built-in function close; the multi-valued
assignment form of the receive operator tests whether a channel has been closed. [1]
Given that is available, why is the use of a separate bool quit channel preferred?[1] http://golang.org/ref/spec#Channel_types |
|