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

Function write_once

tests/async_lock/test_read_write_wait.py:171–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170 # A thread waiting in the shared instance's acquire keeps that instance busy for the task too.
171 def write_once() -> None:
172 with shared.write_lock(timeout=_HOLD * 2):
173 pass
174
175 waiting = threading.Thread(target=write_once)
176 waiting.start()

Callers

nothing calls this directly

Calls 1

write_lockMethod · 0.45

Tested by

no test coverage detected