On Fri, Mar 9, 2018 at 7:47 AM Andrey Tcherepanov <
xnow4fippy...@sneakemail.com> wrote:

> ch <- <-ch // Is this an atomic operation?

Channel send and receive operations are safe wrt to concurrency. That may
be seen atomic in a certain sense: only one goroutine at a time can ever
perform such operation on a given channel without having to coordinate with
any other goroutine - because internally the operation is guarded by a
mutex.

-- 

-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.

Reply via email to