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

Class _SlowLock

tests/test_filelock.py:849–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847 lock_path = tmp_path / "a"
848
849 class _SlowLock(SoftFileLock):
850 def __init__(self, lock_file: str, *, is_singleton: bool = True) -> None:
851 time.sleep(0.05)
852 super().__init__(lock_file, is_singleton=is_singleton)
853
854 results: list[BaseFileLock] = []
855 barrier = threading.Barrier(2)

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by 1

buildFunction · 0.68