pitrou commented on a change in pull request #11354:
URL: https://github.com/apache/arrow/pull/11354#discussion_r726028748



##########
File path: python/pyarrow/_flight.pyx
##########
@@ -1300,13 +1299,18 @@ cdef class FlightClient(_Weakrefable):
             check_flight_status(
                 self.client.get().DoAction(
                     deref(c_options), c_action, &results))
-        while True:
-            result = Result.__new__(Result)
-            with nogil:
-                check_flight_status(results.get().Next(&result.result))
-                if result.result == NULL:
-                    break
-            yield result
+
+        def _do_action_response():

Review comment:
       Interesting indeed.




-- 
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


Reply via email to