You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been tried before. I'm pretty ambivalent. The problem is that Go has better mechanisms for every simple use of a sync.Cond. To get any benefit from a sync.Cond you need a relatively complex use case that is difficult to show in an example. Personally I'm reluctant to write an example showing a simple use case of sync.Cond, because that implies that it would be a good choice for that simple use case, which I believe is not the case.
It would be nice to have a complete example for the Cond struct - signaling or broadcasting from one goroutine, and receiving it in another one.
The text was updated successfully, but these errors were encountered: