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

Class AsyncFileLockContext

src/filelock/asyncio.py:37–47  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…