A dataclass which holds the context for a ``BaseAsyncFileLock`` object.
| 692 | |
| 693 | @dataclass |
| 694 | class 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 | |
| 707 | class AsyncThreadLocalFileContext(AsyncFileLockContext, local): |
nothing calls this directly
no outgoing calls
no test coverage detected