Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /promptdriven_pdd /context /_keyring_timeout_example.py
| """Example contract for pdd._keyring_timeout.""" | |
| from typing import Any, Callable, Optional, Tuple | |
| def _keyring_op_with_timeout( | |
| op: Callable[..., Any], | |
| *args: Any, | |
| timeout: Optional[float] = None, | |
| ) -> Tuple[bool, Any, Optional[BaseException]]: | |
| """ | |
| Run a keyring operation with a bounded wait. | |
| Args: | |
| op: Callable keyring operation such as get_password or set_password. | |
| *args: Arguments passed to the keyring operation. | |
| timeout: Optional timeout in seconds. | |
| Returns: | |
| Tuple of (timed_out, value, exception). If timed_out is True, value and | |
| exception are None and the worker continues only as a daemon thread. | |
| BaseException subclasses are re-raised in the caller instead of being | |
| returned as ordinary keyring failures. | |
| """ | |
| ... | |
Xet Storage Details
- Size:
- 821 Bytes
- Xet hash:
- bfc6c8471cfb9052cffd5f1455cdc89d9176c88b8a3d9e73ab7a01457a9a6f7c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.