code: func (c *Client) Flush() error {
  	if c == nil {
  		return fmt.Errorf("Client is nil")
  	}
  	c.Lock()
  	defer c.Unlock()
  	return c.flushLocked()
  }
docs: // Flush forces a flush of the pending commands in the buffer