[issue43119] asyncio.Queue.put never yields if the queue is unbounded
Andrew Svetlov
report at bugs.python.org
Tue Feb 22 18:07:28 EST 2022
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Sorry, that's how asyncio works: it never switches to another task if `await ...` doesn't need to wait for something actually.
Adding `await asyncio.sleep(0)` to every call decreases performance.
----------
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43119>
_______________________________________
More information about the Python-bugs-list
mailing list