(path: str, acquired: EventType, release: EventType)
| 153 | |
| 154 | |
| 155 | def _hold_until(path: str, acquired: EventType, release: EventType) -> None: |
| 156 | lock = FileLock(path) |
| 157 | lock.acquire() |
| 158 | acquired.set() |
| 159 | release.wait(timeout=30) |
| 160 | lock.release() |
| 161 | |
| 162 | |
| 163 | def _contention(root: Path) -> list[Sample]: |