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

Class CustomLock

tests/soft/read_write/test_lock_singleton.py:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 init_calls = 0
140
141 class CustomLock(SoftReadWriteLock):
142 def __init__(self, *args: Any, **kwargs: Any) -> None: # ruff:ignore[any-type] # forwards the public constructor unchanged
143 nonlocal init_calls
144 init_calls += 1
145 super().__init__(*args, **kwargs)
146
147 def construct() -> SoftReadWriteLock:
148 callers.wait(timeout=5)

Callers 1

constructFunction · 0.70

Calls

no outgoing calls

Tested by 1

constructFunction · 0.56