mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Issue #23812: Fix getter-cancellation with many pending getters code path
This commit is contained in:
parent
86b34da5ef
commit
159fbdd805
2 changed files with 37 additions and 2 deletions
|
@ -228,7 +228,7 @@ class Queue:
|
|||
'queue non-empty, why are getters waiting?')
|
||||
|
||||
getter = self._getters.popleft()
|
||||
self._put_internal(item)
|
||||
self.__put_internal(item)
|
||||
|
||||
# getter cannot be cancelled, we just removed done getters
|
||||
getter.set_result(item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue