Get timeout with priority resolution (sync).
(self, timeout_type: TimeoutType)
| 65 | # ================================================================ |
| 66 | |
| 67 | def get_timeout(self, timeout_type: TimeoutType) -> float: |
| 68 | """Get timeout with priority resolution (sync).""" |
| 69 | if timeout_type in self._timeout_cache: |
| 70 | return self._timeout_cache[timeout_type].value |
| 71 | |
| 72 | resolved = self._resolve_timeout(timeout_type) |
| 73 | self._timeout_cache[timeout_type] = resolved |
| 74 | return resolved.value |
| 75 | |
| 76 | async def get_timeout_async(self, timeout_type: TimeoutType) -> float: |
| 77 | """Get timeout asynchronously.""" |