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