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

Function work

tests/soft/read_write/test_async_close.py:137–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 mocker.patch.object(lock, "_run_acquire", autospec=True, side_effect=gated_acquire)
136
137 async def work() -> None:
138 async with lock.write_lock(timeout=TASK_WAIT):
139 entered.set()
140 await finish.wait()
141
142 acquiring = asyncio.create_task(work())
143 holder.release()

Calls 2

waitMethod · 0.80
write_lockMethod · 0.45

Tested by

no test coverage detected