Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
meddlepal
· 6y ago · 0 comments
I've found channels create more complexity than their usually worth and it's often simpler, more readable, and more maintainable to just use a sync.Mutex or sync.RWMutex.
Comments
[–]
shakezula
6y ago
I'd be hard-pressed to disagree. The entire time reading this blog post, I was confused why a plain function couldn't have been used instead.