stathat.go
func (r *BasicReporter) WaitUntilFinished(timeout time.Duration) bool {
	go r.finish()
	select {
	case <-r.done:
		return true
	case <-time.After(timeout):
		return false
	}
}
func (r *BasicReporter) WaitUntilFinished(timeout time.Duration) bool {
	go r.finish()
	select {
	case <-r.done:
		return true
	case <-time.After(timeout):
		return false
	}
}
func ( r * BasicReporter ) WaitUntilFinished ( timeout time . Duration ) bool { go r . finish ( ) select { case <- r . done : return true case <- time . After ( timeout ) : return false } }
// Wait for all stats to be sent, or until timeout. Useful for simple command-
// line apps to defer a call to this in main()
Wait for all stats to be sent or until timeout . Useful for simple command - line apps to defer a call to this in main ()