Asyncio as_completed in AnyIO #552
Unanswered
jalvespinto
asked this question in
Q&A
Replies: 2 comments
-
I want to add something like this to AnyIO. You should create a new feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmm. I'd solve this with a memory object queue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I implement the functionality of asyncio as_completed on anyio?
I have a messagebus that pickup an user command and directs it to appropriate handler. That may generate a new domain event that should be picked up by the bus too. Using asyncio.as_completed I can run multiple tasks concurrently, get the results of each task as they complete, check if a new event was generated and than handle this new event. I would like to use anyio, but don't know how.
This is kinda of what I am doing with asyncio:
Beta Was this translation helpful? Give feedback.
All reactions