(_fd: int)
| 26 | cancellation_seen = threading.Event() |
| 27 | |
| 28 | def block_hook(_fd: int) -> None: |
| 29 | hook_started.set() |
| 30 | assert finish_hook.wait(timeout=5) |
| 31 | |
| 32 | lock = AsyncFileLock(tmp_path / "a", on_acquired=block_hook) |
| 33 | tasks: Queue[asyncio.Task[AsyncAcquireReturnProxy]] = Queue() |