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

Function _hold_until

tasks/benchmark.py:155–160  ·  view source on GitHub ↗
(path: str, acquired: EventType, release: EventType)

Source from the content-addressed store, hash-verified

153
154
155def _hold_until(path: str, acquired: EventType, release: EventType) -> None:
156 lock = FileLock(path)
157 lock.acquire()
158 acquired.set()
159 release.wait(timeout=30)
160 lock.release()
161
162
163def _contention(root: Path) -> list[Sample]:

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected