Commit 2aa57fe
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 patterns
- Use fcntl for Unix file locking1 parent f0e705d commit 2aa57fe
1 file changed
+1025
-0
lines changed
0 commit comments