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

Class AsyncFileLockContext

src/filelock/asyncio.py:35–45  ·  view source on GitHub ↗

A dataclass which holds the context for a ``BaseAsyncFileLock`` object.

Source from the content-addressed store, hash-verified

33
34@dataclass
35class AsyncFileLockContext(FileLockContext):
36 """A dataclass which holds the context for a ``BaseAsyncFileLock`` object."""
37
38 #: Whether run in executor
39 run_in_executor: bool = True
40
41 #: The executor
42 executor: futures.Executor | None = None
43
44 #: The loop
45 loop: asyncio.AbstractEventLoop | None = None
46
47
48class AsyncThreadLocalFileContext(AsyncFileLockContext, local):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected