On Wed, Nov 25, 2020 at 6:13 PM Alexey Dvoretskiy
<advorets...@emeraldcloudlab.com> wrote:
>
> How would you cal "thread-safety" in Go? Go doesn't have threads so the term 
> "thread-safety" sounds bit off.

The standard library says things like "Multiple goroutines may invoke
methods on a Conn simultaneously" (from
https://golang.org/pkg/net/#Conn).

Terms like "thread safety" can come with various caveats and
restrictions, so it's usually best to avoid just saying "thread safe"
in general purpose documentations.  Better to try to say more
precisely what is and what is not supported.

Ian

-- 
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/CAOyqgcWp7NBnkaa_GoZGg7zyp-gtLR2fwzbWq9Obfojpt_yn%3DA%40mail.gmail.com.

Reply via email to