On Sun, Mar 17, 2019 at 10:49 AM Louki Sumirniy < louki.sumirniy.stal...@gmail.com> wrote:
> I just ran into my first race condition-related error and it made me wonder about how one takes advantage of the mutex properties of channels. I'd not say there are any such properties. However, it's easy to implement a semaphore with a channel. And certain semaphores can act as mutexes. > If I understand correctly, this is a simple example: That example illustrates IMO more of a condition/signal than a typical mutex usage pattern. -- -j -- 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. For more options, visit https://groups.google.com/d/optout.