Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
utils.cpython-313.pyc26 linesDownload Raw Back to __pycache__
1�

2p�j���2�SSKJr SSKrS/r"SS5rg)�)�annotationsN�Deadlinec�4�\rSrSrSrS	SjrSS.S3SjjrSrg)r�	z|4Manage timeouts across multiple steps.5 6Args:7    timeout: Time available in seconds or :obj:`None` if there is no limit.8 9c�X�U UcSUlg[R"5U-Ulg)N)�deadline�time�	monotonic)�self�timeouts  �[D:\code\apps\devtools\python\user_packages\Python313\site-packages\websockets/sync/utils.py�__init__�Deadline.__init__s$����?� �D�M� �N�N�,�w�6�D�M�T)�raise_if_elapsedc��URcgUR[R"5-10nU(aUS::a[S5eU$)a11Calculate a timeout from a deadline.12 13Args:14    raise_if_elapsed: Whether to raise :exc:`TimeoutError`15        if the deadline lapsed.16 17Raises:18    TimeoutError: If the deadline lapsed.19 20Returns:21    Time left in seconds or :obj:`None` if there is no limit.22 23Nrz	timed out)rr	r24�TimeoutError)rrrs   r
r�Deadline.timeouts?���=�=� ���-�-�$�.�.�"2�2����1���{�+�+��r)rN)r�float | None�return�None)r�boolrr)�__name__�25__module__�__qualname__�__firstlineno__�__doc__rr�__static_attributes__�rr
rr	s���7�37��r)�26__future__rr	�__all__rrrr
�<module>r"s��"���,��$�$r
codekingpro/portable-devtools · Team Ai