(path: str, acquired: EventType, release: EventType)
| 139 | |
| 140 | |
| 141 | def _hold_until(path: str, acquired: EventType, release: EventType) -> None: |
| 142 | lock = FileLock(path) |
| 143 | lock.acquire() |
| 144 | acquired.set() |
| 145 | release.wait(timeout=30) |
| 146 | lock.release() |
| 147 | |
| 148 | |
| 149 | def _contention(root: Path) -> list[Sample]: |