lidavidm commented on code in PR #36986:
URL: https://github.com/apache/arrow/pull/36986#discussion_r1303267123
##########
cpp/src/arrow/flight/client.h:
##########
@@ -396,6 +396,13 @@ class ARROW_FLIGHT_EXPORT FlightClient {
/// \brief Whether this client supports asynchronous methods.
bool supports_async() const;
+ /// \brief Check whether this client supports asynchronous methods.
+ ///
+ /// This is like supports_async(), except that a detailed error message
+ /// is returned if async support is not available. If async support is
+ /// available, this function returns successfully.
+ Status CheckAsyncSupport() const;
Review Comment:
LGTM, though I would be happy to replace `supports_async` entirely with this.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]