Skip to content

Commit

Permalink
Update 2023-11-29-07-36-02.gh-issue-83055.Xd4kZv.rst
Browse files Browse the repository at this point in the history
Add a fix description
  • Loading branch information
YvesDup authored Dec 21, 2023
1 parent 8e7dbfe commit b67de99
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
Fix a bug on asyncio.Queue
Fix a bug on :class:`asyncio.Queue` to preserve the FIFO order when putting and getting items.
Currently, it is possible to put a new item when queue is not full and there are already waiters.
This fix will propose to check the dedicated *waiters* deques before input/output on queue.
When putting, if the queue is not full or if the *waiters* deque is not empty, we will have to:

+ in the :meth:`put`, append the task to the *waiters*,
+ in the :meth:`put_nowait`, raise a new exception.

The behavior of the get part should be identical.

0 comments on commit b67de99

Please sign in to comment.