|
|
|
|
|
by _0w8t
1864 days ago
|
|
In my somewhat brief experience with Go I realized that one better avoid channels even for supposedly idiomatic cases. For example, try to implement a priority queue with channels. Or why it is not possible to use the select statement against a file descriptor? Another problem is proliferation of unnecessary threads that are entirely avoidable when using mutexes. |
|
Mutexes go a long way, and underpins channels anyways.