Hi,

It is suggested in https://golang.org/pkg/sync/#WaitGroup that:

// Note that calls with a positive delta that occur when the counter is zero
// must happen before a Wait.

I wonder what's the reason in terms of `sync` implementation.

Essentially I'm trying to implement following logic:

for {
  waitForAllTaskToComplete()
  ...
}

where we may have no task in flight initially.

Thanks!
- 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