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

Function queued

tests/sqlite/test_async_contention.py:155–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 order: list[str] = []
154
155 async def queued() -> None:
156 async with lock.write_lock(timeout=TASK_WAIT):
157 order.append("queued")
158
159 async with lock.write_lock():
160 waiting = asyncio.create_task(queued())

Calls 1

write_lockMethod · 0.45

Tested by

no test coverage detected