Commit 04a7b28
committed
_internal(feat[file_lock]): Add typed, asyncio-friendly file locking module
why: Enable safe concurrent access to shared resources across multiple
processes, particularly for pytest-xdist parallel test execution.
what:
- Add FileLock class with context manager support
- Add atomic_init() for one-time initialization with locking
- Support both sync and async usage patterns1 parent d4688b9 commit 04a7b28
1 file changed
Lines changed: 1025 additions & 0 deletions
0 commit comments