We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
consume_all
asyncio.TimeoutError
1 parent a0bf13b commit 39307f1Copy full SHA for 39307f1
src/a2a/server/events/event_consumer.py
@@ -130,6 +130,9 @@ async def consume_all(self) -> AsyncGenerator[Event]:
130
except TimeoutError:
131
# continue polling until there is a final event
132
continue
133
+ except asyncio.TimeoutError:
134
+ # This class was made an alias of build-in TimeoutError after 3.11
135
+ continue
136
except QueueClosed:
137
# Confirm that the queue is closed, e.g. we aren't on
138
# python 3.12 and get a queue empty error on an open queue
0 commit comments