well, if I am trying to learn golang then I may need examples of how to use 
sync.Cond, but it's good to know that it may have problems. If you have an 
interview then people may ask you questions and if you haven't tried to use 
some feature or haven't played with it then you may feel like you don't 
fully understand things and it can effect your feeling of confidence 

On Friday, July 19, 2024 at 4:58:13 PM UTC-4 Ian Lance Taylor wrote:

> On Fri, Jul 19, 2024 at 1:52 PM Laurence Guild <massr...@gmail.com> wrote:
> >
> >
> > Is there an article that says not to use sync.Cond ? This page seems to 
> have some fans of sync.Cond. I have xtensive software experience but I am 
> new to golang so I am just trying to learn
> >
> > https://github.com/golang/go/issues/21165
>
> I would say that sync.Cond has its uses in Go, but they are rare. In
> Go one normally uses channels for the kinds of things for which other
> languages use conditional variables. It's probably a mistake to use
> sync.Cond without a clear understanding of why channels won't work.
>
> Ian
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/04a5e266-cbf6-4e98-9fe1-ed7080d79b17n%40googlegroups.com.

Reply via email to