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

Class AioFileLock

tests/test_async_filelock.py:167–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 acquired = released = False
166
167 class AioFileLock(BaseAsyncFileLock):
168 async def _acquire(self) -> None: # ty: ignore[invalid-method-override]
169 nonlocal acquired
170 acquired = True
171 self._context.lock_file_fd = 1
172
173 async def _release(self) -> None: # ty: ignore[invalid-method-override]
174 nonlocal released
175 released = True
176 self._context.lock_file_fd = None
177
178 lock = AioFileLock(str(tmp_path / "a"))
179 await lock.acquire()

Callers 1

test_coroutine_functionFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_coroutine_functionFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…