3 ms·
A go channels implemented using a mutex? I would be surprised if that was the case (but it might be). I would imagine such a fundamental construct built into th
by chrisseaton 11y ago
A go channels implemented using a mutex? I would be surprised if that was the case (but it might be). I would imagine such a fundamental construct built into the language would be lock-free.
- kasey_junk 11y agohttps://golang.org/src/runtime/chan.go https://golang.org/src/runtime/chan.go Lines 28, 152, 401
- chrisseaton 11y agoI stand corrected. I guess it must have some more complex functionality that I thought, needing a lock.
- kasey_junk 11y agoThat is the charitable way to interpret it.