[issue30457] Allow retrieve the number of waiters pending for most of the asyncio lock primitives
Yury Selivanov
report at bugs.python.org
Wed Oct 11 02:35:02 EDT 2017
Yury Selivanov <yselivanov at gmail.com> added the comment:
> Not really, your code never removes the key from the events. If the cache is cleaned all further executions will keep forever in the `wait` statement. It is needed to create the Event again to perform at least one query to retrieve the cache value.
Right. Well, that should be solved by adding "events.pop(key)" right after "events[key].set()"?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30457>
_______________________________________
More information about the Python-bugs-list
mailing list