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

Function wait

tests/soft/read_write/test_async_executor.py:94–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 gate = BackendGate(mocker, "_acquire_level_of", SoftReadWriteLock._acquire_level_of)
93
94 async def wait() -> None:
95 await waiter.acquire_write(timeout=5)
96 await waiter.release()
97
98 waiting = asyncio.create_task(wait())
99 await gate.started.wait()

Callers 2

runFunction · 0.85
defer_receiptFunction · 0.85

Calls 2

acquire_writeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected