code: func (c *controller) AgentInitWait() {
  	c.Lock()
  	agentInitDone := c.agentInitDone
  	c.Unlock()
  
  	if agentInitDone != nil {
  		<-agentInitDone
  	}
  }
docs: // AgentInitWait waits for agent initialization to be completed in the controller.