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

Function acquire_other

tests/test_async_filelock.py:484–490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482 error: BaseException | None = None
483
484 async def acquire_other() -> None:
485 nonlocal error
486 lock2 = lock_type(lock_path, timeout=0)
487 try:
488 await lock2.acquire()
489 except BaseException as exc:
490 error = exc
491
492 await asyncio.create_task(acquire_other())
493 await lock1.release()

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected