Various sources say wait() waits until the internal counter reaches zero. 
Does it cause a real pause (e.g.: control passing to another goroutine?) 
Looking at the code, it just seems to loop endlessly waiting for the 
counter to reach zero. Is that somehow optimized away? Sitting in a tight 
loop waiting for a bunch of goroutines to exit seems like a waste of 
machine cycles...

Joe

-- 
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/4698ca4b-530e-4314-bd5d-c76a89e19a1a%40googlegroups.com.

Reply via email to