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

Class AsyncFileLockContext

src/filelock/asyncio.py:694–704  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

692
693@dataclass
694class AsyncFileLockContext(FileLockContext):
695 """A dataclass which holds the context for a ``BaseAsyncFileLock`` object."""
696
697 #: Whether run in executor
698 run_in_executor: bool = True
699
700 #: The executor
701 executor: futures.Executor | None = None
702
703 #: The loop
704 loop: asyncio.AbstractEventLoop | None = None
705
706
707class AsyncThreadLocalFileContext(AsyncFileLockContext, local):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected