On Tue, Jun 6, 2017 at 7:48 PM,  <haofx...@gmail.com> wrote:
>
> "there is no guarantee that the write to done will ever
> be observed by main", i am wondering why the write to done will ever
> be observed by main in detail?

I'm sorry, I don't understand the question.

The program in question, from https://golang.org/ref/mem, has a race
condition.  The documentation is saying that the main function may or
may not see the store to "done" by the goroutine.

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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to