Merge branch '16306-arvados-easy-install'
[arvados.git] / sdk / go / arvados / client.go
index 5c6a7b52f43f97842bf207859fcfed4f4d057cce..52c75d5113c2a9399267e90fb8c18c8a5aeeaad7 100644 (file)
@@ -306,6 +306,7 @@ func (c *Client) RequestAndDecode(dst interface{}, method, path string, body io.
        return c.RequestAndDecodeContext(context.Background(), dst, method, path, body, params)
 }
 
+// RequestAndDecodeContext does the same as RequestAndDecode, but with a context
 func (c *Client) RequestAndDecodeContext(ctx context.Context, dst interface{}, method, path string, body io.Reader, params interface{}) error {
        if body, ok := body.(io.Closer); ok {
                // Ensure body is closed even if we error out early