On Fri, Jan 12, 2024 at 7:57 PM Rochus Keller <rochus.kel...@gmail.com> wrote:
> Here is the full question with examples (though meanwhile closed as usual in > recent times on stackoverflow, so answer here please): > https://stackoverflow.com/questions/77802102/mutex-and-condition-variables-in-go-without-using-the-sync-package > > This is a conceptual question based on the duality of monitors and message > passing. My goal is to see and be able to experiment with a correct and > complete example of a mutex with condition variables in Go which only use Go > channels for implementation, as a proof of concept. Only then we can discuss > how far it makes sense from an engineering standpoint. > Something like this? https://go.dev/play/p/_H3kFjprAGG -- 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/CAA40n-UWgi%3D8OvAvs1gR3kudxxQFNfnFgDNLb3OUq-8iLAGrXw%40mail.gmail.com.