code: func (c *controller) agentInitComplete() {
  	c.Lock()
  	if c.agentInitDone != nil {
  		close(c.agentInitDone)
  		c.agentInitDone = nil
  	}
  	c.Unlock()
  }
docs: // agentInitComplete notifies the successful completion of the Agent initialization