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

Function construct

tests/soft/read_write/test_lock_singleton.py:147–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 super().__init__(*args, **kwargs)
146
147 def construct() -> SoftReadWriteLock:
148 callers.wait(timeout=5)
149 return CustomLock(lock_file)
150
151 with ThreadPoolExecutor(max_workers=8) as pool:
152 instances = list(pool.map(lambda _: construct(), range(8)))

Calls 2

waitMethod · 0.80
CustomLockClass · 0.70

Tested by

no test coverage detected