MCPcopy Create free account
hub / github.com/tox-dev/filelock / waiter

Function waiter

tests/test_async_filelock.py:516–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514 events.append("holder:released")
515
516 async def waiter() -> None:
517 await holding.wait()
518 async with lock_type(lock_path):
519 events.append("waiter:acquired")
520
521 await asyncio.gather(holder(), waiter()) # propagates a false-positive Deadlock
522

Calls

no outgoing calls

Tested by

no test coverage detected