| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
…0-30-43.gh-issue-119154.1MHWA-.rst
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
|
#120491 remains my preferred approach. Given @rhettinger's review of #120503 I still support making asyncio.Queue aiterable but would drop any changes to synchronous queue classes. More generally, I suggest openning only one or two PRs at a time - having four very similar PRs with multiple issues makes is much harder to track what's going on. |
Sorry, something went wrong.
|
Removing review requests on this PR and marking DO NOT MERGE. Let's finish the discussion on #120491 #120491 (comment) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Purpose
Currently consuming items from a queue is very complex. You need to
By adding asyncio.Queue.iter() and asyncio.Queue.iter_nowait(), this becomes a lot easier, you only need to call queue.shutdown(). We're using methods to allow queue.Queue to have the same interface.
Overview of changes
Example
Without iteration
With iteration
Output
📚 Documentation preview 📚: https://cpython-previews--120927.org.readthedocs.build/