statsd.go
func (c *Client) Close() {
	if c.muted {
		return
	}
	c.conn.mu.Lock()
	c.conn.flush(0)
	c.conn.handleError(c.conn.w.Close())
	c.conn.closed = true
	c.conn.mu.Unlock()
}
func (c *Client) Close() {
	if c.muted {
		return
	}
	c.conn.mu.Lock()
	c.conn.flush(0)
	c.conn.handleError(c.conn.w.Close())
	c.conn.closed = true
	c.conn.mu.Unlock()
}
func ( c * Client ) Close ( ) { if c . muted { return } c . conn . mu . Lock ( ) c . conn . flush ( 0 ) c . conn . handleError ( c . conn . w . Close ( ) ) c . conn . closed = true c . conn . mu . Unlock ( ) }
// Close flushes the Client's buffer and releases the associated ressources. The
// Client and all the cloned Clients must not be used afterward.
Close flushes the Client s buffer and releases the associated ressources . The Client and all the cloned Clients must not be used afterward .