Wow, thank you, Jan

пятница, 13 апреля 2018 г., 15:43:51 UTC+3 пользователь Jan Mercl написал:
>
> On Fri, Apr 13, 2018 at 2:29 PM <vadim.k...@gmail.com <javascript:>> 
> wrote:
>
> > What i do wrong? 
>
> The code relies on the bool value in 'ok', returned from .Load(), but that 
> _does not_ mean some other goroutine, once you remove the mutex.Lock(), 
> cannot insert a value for the same key the moment the call of .Load() 
> returned.
>
> -- 
>
> -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