pitrou commented on code in PR #36986:
URL: https://github.com/apache/arrow/pull/36986#discussion_r1297336924


##########
python/pyarrow/_flight.pyx:
##########
@@ -1219,6 +1220,93 @@ cdef class FlightMetadataWriter(_Weakrefable):
             check_flight_status(self.writer.get().WriteMetadata(deref(buf)))
 
 
+class AsyncioCall:
+    """State for an async RPC using asyncio."""
+
+    def __init__(self) -> None:
+        import asyncio
+
+        # Python waits on the event.
+        self._event = asyncio.Event()
+        # The C++ callback puts a task on the pool to set the event, waking up
+        # Python.
+        # The result of the async call.
+        # TODO(lidavidm): how best to handle streams?

Review Comment:
   Using a `queue` and a ` asyncio.Condition` perhaps?
   



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

Reply via email to