func connectionCloseFunc(v interface{}) {
	c, ok := v.(*connection)
	if !ok || v == nil {
		return
	}

	go func() {
		// wait for connection to finish trying to connect
		_ = c.wait()
		_ = c.pool.closeConnection(c)
	}()
}
// connectionCloseFunc closes a given connection. If ctx is nil, the closing will occur in the background
connectionCloseFunc closes a given connection. If ctx is nil, the closing will occur in the background
// connectionCloseFunc closes a given connection . If ctx is nil the closing will occur in the background
func connectionCloseFunc(v interface{}) {
	c, ok := v.(*connection)
	if !ok || v == nil {
		return
	}
	go func() {
		_ = c.wait()
		_ = c.pool.closeConnection(c)
	}()
}
func connectionCloseFunc ( v interface { } ) { c , ok := v . ( * connection ) if ! ok || v == nil { return } go func ( ) { _ = c . wait ( ) _ = c . pool . closeConnection ( c ) } ( ) }
connectionCloseFunc closes a given connection.
connectionCloseFunc closes a given connection .
// wait for connection to finish trying to connect