Your not checking done in your for loop.

On 14/10/2019 13:39, Jeff Kayser wrote:
I'm working through the most excellent book "Concurrency in Go", doing the example on page 162-166.  My code is here:

https://play.golang.org/p/7kokkAIdhov

The program is not triggering the timeout section of the code (lines 103-103 in the playground code).

All of the other examples have worked as expected, including the one just before this, which is almost identical, except for a couple of tweaks.  This is the first one that hasn't worked.

What am I doing wrong?

~Jeff Kayser

--
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 <mailto:golang-nuts+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6316c901-9425-4d4f-9bb3-2f7d4aed94a5%40googlegroups.com <https://groups.google.com/d/msgid/golang-nuts/6316c901-9425-4d4f-9bb3-2f7d4aed94a5%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/487e1ad8-e0e6-a3d7-d69b-b9a20dec9295%40multiplay.co.uk.

Reply via email to