()
| 127 | |
| 128 | @staticmethod |
| 129 | def _deadlock_scope() -> Hashable | None: |
| 130 | # One event loop thread runs every task, so a thread-scoped registry cannot tell a same-task reacquire |
| 131 | # (a real deadlock: the polling task never reaches its own release) from another task queuing behind the |
| 132 | # holder (no deadlock: each poll yields, so the holder runs on and releases). Only the first may fail |
| 133 | # fast, so scope holders to the task. |
| 134 | return asyncio.current_task() |
| 135 | |
| 136 | def __init__( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option |
| 137 | self, |
nothing calls this directly
no outgoing calls
no test coverage detected