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

Function write_once

tests/sqlite/async_helpers.py:40–42  ·  view source on GitHub ↗
(lock: AsyncReadWriteLock)

Source from the content-addressed store, hash-verified

38
39
40async def write_once(lock: AsyncReadWriteLock) -> None:
41 async with lock.write_lock(timeout=TASK_WAIT):
42 pass
43
44
45def pause_rollback(

Calls 1

write_lockMethod · 0.45