// IncWhenDone wait until the counter is exactly 0 and triggeres an increment
// if this is found to be true
IncWhenDone wait until the counter is exactly 0 and triggeres an increment
if this is found to be true
// IncWhenDone wait until the counter is exactly 0 and triggeres an increment // if this is found to be true
func (wg *WaitGroup) IncWhenDone() {
	spin := NewSpinner(SpinPriorityHigh)
	for !atomic.CompareAndSwapInt32(&wg.counter, 0, 1) {
		spin.Yield()
	}
}
func ( wg * WaitGroup ) IncWhenDone ( ) { spin := NewSpinner ( SpinPriorityHigh ) for ! atomic . CompareAndSwapInt32 ( & wg . counter , 0 , 1 ) { spin . Yield ( ) } }
IncWhenDone wait until the counter is exactly 0 and triggeres an increment
if this is found to be true
IncWhenDone wait until the counter is exactly 0 and triggeres an increment if this is found to be true