DEV Community

Discussion on: Crafting a concurrent queue in Golang

Collapse
 
mdnurahmed profile image
MD Nur Ahmed

so here only one goroutine can access the queue at a time, right? I think just using a buffered channel with the producer-consumer pattern is better for this purpose

Collapse
 
narasimha1997 profile image
Narasimha Prasanna HN

Yes, they are better.
Just exploring cool stuff to improve go skills