[issue45146] Add a possibility for asyncio.Condition to determine the count of currently waiting consumers

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, your use-case looks not convincing but overcomplicated. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue45146] Add a possibility for asyncio.Condition to determine the count of currently waiting consumers

2021-09-09 Thread Mykola Mokhnach
Mykola Mokhnach added the comment: This improvement request is also applicable to other asyncio synchronization primitives that contain a waiting queue. -- ___ Python tracker ___

[issue45146] Add a possibility for asyncio.Condition to determine the count of currently waiting consumers

2021-09-08 Thread Mykola Mokhnach
New submission from Mykola Mokhnach : Currently the asyncio.Condition class does not provide any properties that would allow to determine how many (if) consumers are waiting for the current condition. My scenario is the following: ``` ... FILE_STATS_CONDITIONS: Dict[str, asyncio.Condition] =