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

Function work

tests/sqlite/test_async_close.py:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 mocker.patch.object(lock, "_run_acquire", autospec=True, side_effect=gated_acquire)
120
121 async def work() -> None:
122 async with lock.write_lock(timeout=TASK_WAIT):
123 entered.set()
124 await finish.wait()
125
126 acquiring = asyncio.create_task(work())
127 holder.release()

Calls 2

waitMethod · 0.80
write_lockMethod · 0.45

Tested by

no test coverage detected