Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.143.239.215
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : futures.cpython-313.pyc
�

1}gM7��n�SrSrSSKrSSKrSSKrSSKrSSKJr SSK	J
r
 SSK	Jr SSK	Jr SS	K	J
r
 \
Rr\
Rr\
R r\
R"r\R$S-
r"S
S5r\rSrS
rSrSrSrSrSS.SjrSSKr\R(=rrg!\a gf=f)z.A Future class similar to the one in PEP 3148.)�Future�wrap_future�isfuture�N)�GenericAlias�)�base_futures)�events)�
exceptions)�format_helpersc��\rSrSrSr\rSrSrSr	Sr
SrSrSr
SrSS.SjrSrSr\"\5r\S	5r\R.S
5rSrSrSS
jrSrSrSrSrSrSS.Sjr Sr!Sr"Sr#Sr$\$r%Sr&g)r�aThis class is *almost* compatible with concurrent.futures.Future.

Differences:

- This class is not thread-safe.

- result() and exception() do not take a timeout argument and
  raise an exception when the future isn't done yet.

- Callbacks registered with add_done_callback() are always called
  via the event loop's call_soon().

- This class is not compatible with the wait() and as_completed()
  methods in the concurrent.futures package.

(In Python 3.4 or later we may be able to unify the implementations.)
NF��loopc��Uc"5UlOXl/UlURR	5(a0[
R"[R"S55Ul	gg)z�Initialize the future.

The optional event_loop argument allows explicitly setting the event
loop object used by the future. If it's not provided, the future uses
the default event loop.
Nr)
r	�get_event_loop�_loop�
_callbacks�	get_debugr�
extract_stack�sys�	_getframe�_source_traceback��selfrs  �6/opt/alt/python313/lib64/python3.13/asyncio/futures.py�__init__�Future.__init__Hs\���<��.�.�0�D�J��J�����:�:���!�!�%3�%A�%A��
�
�a� �&"�D�"�"�c�.�[R"U5$�N)r�_future_repr�rs r�__repr__�Future.__repr__Xs���(�(��.�.rc���UR(dgURnURRS3UUS.nUR(aURUS'UR
R
U5 g)Nz exception was never retrieved)�message�	exception�future�source_traceback)�_Future__log_traceback�
_exception�	__class__�__name__rr�call_exception_handler)r�exc�contexts   r�__del__�Future.__del__[sl���#�#�
��o�o���>�>�*�*�+�+I�J���	
���!�!�*.�*@�*@�G�&�'��
�
�)�)�'�2rc��UR$r )r*r"s r�_log_traceback�Future._log_tracebackms���#�#�#rc�6�U(a[S5eSUlg)Nz'_log_traceback can only be set to FalseF)�
ValueErrorr*)r�vals  rr4r5qs����F�G�G�$��rc�:�URnUc[S5eU$)z-Return the event loop the Future is bound to.z!Future object is not initialized.)r�RuntimeErrorrs  r�get_loop�Future.get_loopws!���z�z���<��B�C�C��rc���URbURnSUlU$URc[R"5nU$[R"UR5nU$)z�Create the CancelledError to raise if the Future is cancelled.

This should only be called once when handling a cancellation since
it erases the saved context exception value.
N)�_cancelled_exc�_cancel_messager
�CancelledError)rr/s  r�_make_cancelled_error�Future._make_cancelled_error~sf�����*��%�%�C�"&�D���J����'��+�+�-�C��
��+�+�D�,@�,@�A�C��
rc�~�SUlUR[:wag[UlXlUR5 g)z�Cancel the future and schedule callbacks.

If the future is already done or cancelled, return False.  Otherwise,
change the future's state to cancelled, schedule the callbacks and
return True.
FT)r*�_state�_PENDING�
_CANCELLEDr?�_Future__schedule_callbacks)r�msgs  r�cancel�
Future.cancel�s7�� %����;�;�(�"�� ���"���!�!�#�rc��URSSnU(dg/URSS&UHup#URRX US9 M! g)z�Internal: Ask the event loop to call all callbacks.

The callbacks are scheduled to be called as soon as possible. Also
clears the callback list.
N�r0)rr�	call_soon)r�	callbacks�callback�ctxs    r�__schedule_callbacks�Future.__schedule_callbacks�sI���O�O�A�&�	���������&�M�H��J�J� � ��� �=�'rc�(�UR[:H$)z(Return True if the future was cancelled.)rDrFr"s r�	cancelled�Future.cancelled�s���{�{�j�(�(rc�(�UR[:g$)z�Return True if the future is done.

Done means either that a result / exception are available, or that the
future was cancelled.
)rDrEr"s r�done�Future.done�s���{�{�h�&�&rc�(�UR[:XaUR5eUR[:wa[R
"S5eSUlURb%URRUR5eUR$)z�Return the result this future represents.

If the future has been cancelled, raises CancelledError.  If the
future's result isn't yet available, raises InvalidStateError.  If
the future is done and has an exception set, this exception is raised.
zResult is not ready.F)rDrFrA�	_FINISHEDr
�InvalidStateErrorr*r+�with_traceback�
_exception_tb�_resultr"s r�result�
Future.result�st���;�;�*�$��,�,�.�.��;�;�)�#��.�.�/E�F�F�$����?�?�&��/�/�0�0��1C�1C�D�D��|�|�rc���UR[:XaUR5eUR[:wa[R
"S5eSUlUR$)z�Return the exception that was set on this future.

The exception (or None if no exception was set) is returned only if
the future is done.  If the future has been cancelled, raises
CancelledError.  If the future isn't done yet, raises
InvalidStateError.
zException is not set.F)rDrFrArZr
r[r*r+r"s rr'�Future.exception�sO���;�;�*�$��,�,�.�.��;�;�)�#��.�.�/F�G�G�$������rrLc���UR[:waURRXUS9 gUc[R
"5nURRX45 g)z�Add a callback to be run when the future becomes done.

The callback is called with a single argument - the future object. If
the future is already done when this is called, the callback is
scheduled with call_soon.
rLN)rDrErrM�contextvars�copy_contextr�append)r�fnr0s   r�add_done_callback�Future.add_done_callback�sN���;�;�(�"��J�J� � ��7� �;���%�2�2�4���O�O�"�"�B�=�1rc���URVVs/sHup#X!:wdMX#4PM nnn[UR5[U5-
nU(aX@RSS&U$s snnf)zmRemove all instances of a callback from the "call when done" list.

Returns the number of callbacks removed.
N)r�len)rrg�frP�filtered_callbacks�
removed_counts      r�remove_done_callback�Future.remove_done_callback�sh��/3�o�o�*�.=�(�1�!"��'�q�h�.=�	�*��D�O�O�,�s�3E�/F�F�
��!3�O�O�A�����
*s
�A!�A!c��UR[:wa&[R"URSU<35eXl[
UlUR
5 g)z~Mark the future done and set its result.

If the future is already done when this method is called, raises
InvalidStateError.
�: N)rDrEr
r[r^rZrG)rr_s  r�
set_result�Future.set_result�sH���;�;�(�"��.�.�$�+�+��b���/I�J�J�������!�!�#rc�~�UR[:wa&[R"URSU<35e[	U[
5(aU"5n[	U[5(a[S5nXlXl	UnXl
URUl[UlUR5 SUlg)z�Mark the future done and set an exception.

If the future is already done when this method is called, raises
InvalidStateError.
rrzPStopIteration interacts badly with generators and cannot be raised into a FutureTN)rDrEr
r[�
isinstance�type�
StopIterationr:�	__cause__�__context__r+�
__traceback__r]rZrGr*)rr'�new_excs   r�
set_exception�Future.set_exceptions����;�;�(�"��.�.�$�+�+��b���/I�J�J��i��&�&�!��I��i��/�/�"�$,�-�G�!*��"+���I�#��&�4�4�������!�!�#�#��rc#�# �UR5(dSUlUv� UR5(d[S5eUR5$7f)NTzawait wasn't used with future)rW�_asyncio_future_blockingr:r_r"s r�	__await__�Future.__await__s@����y�y�{�{�,0�D�)��J��y�y�{�{��>�?�?��{�{�}��s�AA)�__log_tracebackr�rr?r>r+r]rr^rrDr )'r-�
__module__�__qualname__�__firstlineno__�__doc__rErDr^r+rrr?r>r�r*rr#r1�classmethodr�__class_getitem__�propertyr4�setterr;rArIrGrTrWr_r'rhrorsr}r��__iter__�__static_attributes__�rrrrs����&�F��G��J��E����O��N� %���O�#�"� /�3� $�L�1��
�$��$����%��%�
��"
�>�)�'�� 
�04�2� �
$�$�.��Hrrc�`�URnU"5$![a UR$f=fr )r;�AttributeErrorr)�futr;s  r�	_get_loopr�*s:����<�<���z����
���9�9��	
�s��
-�-c�R�UR5(agURU5 g)z?Helper setting the result only if the future was not cancelled.N)rTrs)r�r_s  r�_set_result_unless_cancelledr�6s��
�}�}�����N�N�6�rc�h�[U5nU[RRLa6[R"UR
6R
UR5$U[RRLa6[R"UR
6R
UR5$U$r )	rw�
concurrent�futuresr@r
�argsr\r{r[)r/�	exc_classs  r�_convert_future_excr�=s����S�	�I��J�&�&�5�5�5��(�(�#�(�(�3�B�B�3�CT�CT�U�U�	�j�(�(�:�:�	:��+�+�S�X�X�6�E�E�c�FW�FW�X�X��
rc�N�UR5(deUR5(aUR"5 UR"5(dgUR	5nUbUR
"[
U55 gUR5nUR"U5 g)z8Copy state from a future to a concurrent.futures.Future.N)	rWrTrI�set_running_or_notify_cancelr'r}r�r_rs)r��sourcer'r_s    r�_set_concurrent_future_stater�Gs����;�;�=�=��=�
����������2�2�4�4��� � �"�I���� � �!4�Y�!?�@���������f�%rc�v�UR5(deUR5(agUR5(aeUR5(aUR5 gUR5nUbUR	[U55 gUR
5nURU5 g)ziInternal helper to copy state from another Future.

The other Future may be a concurrent.futures.Future.
N)rWrTrIr'r}r�r_rs)r��destr'r_s    r�_copy_future_stater�Vs���
�;�;�=�=��=��~�~�����y�y�{�{��?�
��������
��$�$�&�	�� ����2�9�=�>��]�]�_�F��O�O�F�#rc�^^^^^�[T5(d4[T[RR5(d[S5e[T5(d4[T[RR5(d[S5e[T5(a[
T5OSm[T5(a[
T5OSmSmUUU4SjnUUUU4SjnTRU5 TRU5 g)aChain two futures so that when one completes, so does the other.

The result (or exception) of source will be copied to destination.
If destination is cancelled, source gets cancelled too.
Compatible with both asyncio.Future and concurrent.futures.Future.
z(A future is required for source argumentz-A future is required for destination argumentNc�R�[U5(a[X5 g[X5 gr )rr�r�)r(�others  r�
_set_state�!_chain_future.<locals>._set_statezs���F����u�-�(��7rc�>�UR5(a5TbTTLaTR5 gTRTR5 ggr )rTrI�call_soon_threadsafe)�destination�	dest_loopr��source_loops ���r�_call_check_cancel�)_chain_future.<locals>._call_check_cancel�s?���� � �"�"��"�k�Y�&>��
�
���0�0����?�	#rc��>�TR5(aTbTR5(agTbTTLa
T"TU5 gTR5(agTRTTU5 gr )rT�	is_closedr�)r�r�r�r�r�s ����r�_call_set_state�&_chain_future.<locals>._call_set_state�sd����!�!�#�#��%�)�*=�*=�*?�*?����	�[� 8��{�F�+��"�"�$�$���*�*�:�{�F�Kr)rrvr�r�r�	TypeErrorr�rh)r�r�r�r�r�r�r�s``  @@@r�
_chain_futurer�js�����F���J�v�/9�/A�/A�/H�/H�%J�%J��B�C�C��K� � ��K�4>�4F�4F�4M�4M�*O�*O��G�H�H�'/��'7�'7�)�F�#�T�K�*2�;�*?�*?�	�+�&�T�I�8�@�	L�	L��!�!�"4�5�
���_�-rrc��[U5(aU$[U[RR5(dSU<35eUc[
R"5nUR5n[X5 U$)z&Wrap concurrent.futures.Future object.z+concurrent.futures.Future is expected, got )	rrvr�r�rr	r�
create_futurer�)r(r�
new_futures   rrr�ss�������
��f�j�0�0�7�7�8�8�A�
5�f�Z�@�A�8��|��$�$�&���#�#�%�J��&�%��r) r��__all__�concurrent.futuresr�rd�loggingr�typesr�rr	r
rrrErFrZ�DEBUG�STACK_DEBUGr�	_PyFuturer�r�r�r�r�r�r�_asyncio�_CFuture�ImportErrorr�rr�<module>r�s���4������
������� � ��� � ��
�
$�
$�
��"�"�	��m�m�a���E�E�R
�	�	���&�$�().�X!%�
�(��
!���'�F�X��	�	��	�s�B+�+B4�3B4
© 2025 GrazzMean-Shell