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

Method __init__

tests/core/test_singleton.py:129–131  ·  view source on GitHub ↗
(self, lock_file: str, *, is_singleton: bool = True)

Source from the content-addressed store, hash-verified

127
128 class _SlowLock(SoftFileLock):
129 def __init__(self, lock_file: str, *, is_singleton: bool = True) -> None:
130 time.sleep(0.05) # simplint: ignore[sleep-in-test] # needs a construction-start hook
131 super().__init__(lock_file, is_singleton=is_singleton)
132
133 results: list[BaseFileLock] = []
134 barrier = threading.Barrier(2)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

sleepMethod · 0.80

Tested by

no test coverage detected