cyb70289 commented on a change in pull request #12302: URL: https://github.com/apache/arrow/pull/12302#discussion_r801236950
########## File path: cpp/src/arrow/flight/client.h ########## @@ -323,8 +323,19 @@ class ARROW_FLIGHT_EXPORT FlightClient { return DoExchange({}, descriptor, writer, reader); } + /// \brief Explicitly shut down and clean up the client. + /// + /// For backwards compatibility, this will be implicitly called by + /// the destructor if not already called, but this gives the + /// application no chance to handle errors, so it is recommended to + /// explicitly close the client. + /// + /// \since 8.0.0 + Status Close(); + private: FlightClient(); + Status CheckOpen(); Review comment: Nit: append `const`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org