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

Function acquire_in_thread

tests/test_filelock.py:1331–1337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1329 error: BaseException | None = None
1330
1331 def acquire_in_thread() -> None:
1332 nonlocal error
1333 lock2 = lock_type(lock_path, timeout=0)
1334 try:
1335 lock2.acquire()
1336 except BaseException as exc:
1337 error = exc
1338
1339 thread = threading.Thread(target=acquire_in_thread)
1340 thread.start()

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected