Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python313/lib64/python3.13/asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python313/lib64/python3.13/asyncio/__pycache__/futures.cpython-313.pyc
�

�dYhM7��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
Name
Size
Permissions
Options
__init__.cpython-313.opt-1.pyc
1.44 KB
-rw-r--r--
__init__.cpython-313.opt-2.pyc
1.385 KB
-rw-r--r--
__init__.cpython-313.pyc
1.44 KB
-rw-r--r--
__main__.cpython-313.opt-1.pyc
8.537 KB
-rw-r--r--
__main__.cpython-313.opt-2.pyc
8.537 KB
-rw-r--r--
__main__.cpython-313.pyc
8.537 KB
-rw-r--r--
base_events.cpython-313.opt-1.pyc
87.48 KB
-rw-r--r--
base_events.cpython-313.opt-2.pyc
78.463 KB
-rw-r--r--
base_events.cpython-313.pyc
87.53 KB
-rw-r--r--
base_futures.cpython-313.opt-1.pyc
3.066 KB
-rw-r--r--
base_futures.cpython-313.opt-2.pyc
2.835 KB
-rw-r--r--
base_futures.cpython-313.pyc
3.066 KB
-rw-r--r--
base_subprocess.cpython-313.opt-1.pyc
16.722 KB
-rw-r--r--
base_subprocess.cpython-313.opt-2.pyc
16.632 KB
-rw-r--r--
base_subprocess.cpython-313.pyc
16.938 KB
-rw-r--r--
base_tasks.cpython-313.opt-1.pyc
4.08 KB
-rw-r--r--
base_tasks.cpython-313.opt-2.pyc
4.08 KB
-rw-r--r--
base_tasks.cpython-313.pyc
4.08 KB
-rw-r--r--
constants.cpython-313.opt-1.pyc
0.999 KB
-rw-r--r--
constants.cpython-313.opt-2.pyc
0.999 KB
-rw-r--r--
constants.cpython-313.pyc
0.999 KB
-rw-r--r--
coroutines.cpython-313.opt-1.pyc
3.883 KB
-rw-r--r--
coroutines.cpython-313.opt-2.pyc
3.787 KB
-rw-r--r--
coroutines.cpython-313.pyc
3.939 KB
-rw-r--r--
events.cpython-313.opt-1.pyc
36.082 KB
-rw-r--r--
events.cpython-313.opt-2.pyc
27.49 KB
-rw-r--r--
events.cpython-313.pyc
36.082 KB
-rw-r--r--
exceptions.cpython-313.opt-1.pyc
3.152 KB
-rw-r--r--
exceptions.cpython-313.opt-2.pyc
2.538 KB
-rw-r--r--
exceptions.cpython-313.pyc
3.152 KB
-rw-r--r--
format_helpers.cpython-313.opt-1.pyc
4.133 KB
-rw-r--r--
format_helpers.cpython-313.opt-2.pyc
3.778 KB
-rw-r--r--
format_helpers.cpython-313.pyc
4.133 KB
-rw-r--r--
futures.cpython-313.opt-1.pyc
16.583 KB
-rw-r--r--
futures.cpython-313.opt-2.pyc
13.525 KB
-rw-r--r--
futures.cpython-313.pyc
16.984 KB
-rw-r--r--
locks.cpython-313.opt-1.pyc
27.482 KB
-rw-r--r--
locks.cpython-313.opt-2.pyc
21.014 KB
-rw-r--r--
locks.cpython-313.pyc
27.482 KB
-rw-r--r--
log.cpython-313.opt-1.pyc
0.288 KB
-rw-r--r--
log.cpython-313.opt-2.pyc
0.251 KB
-rw-r--r--
log.cpython-313.pyc
0.288 KB
-rw-r--r--
mixins.cpython-313.opt-1.pyc
1.088 KB
-rw-r--r--
mixins.cpython-313.opt-2.pyc
1.055 KB
-rw-r--r--
mixins.cpython-313.pyc
1.088 KB
-rw-r--r--
proactor_events.cpython-313.opt-1.pyc
44.28 KB
-rw-r--r--
proactor_events.cpython-313.opt-2.pyc
43.886 KB
-rw-r--r--
proactor_events.cpython-313.pyc
44.997 KB
-rw-r--r--
protocols.cpython-313.opt-1.pyc
8.223 KB
-rw-r--r--
protocols.cpython-313.opt-2.pyc
3.788 KB
-rw-r--r--
protocols.cpython-313.pyc
8.223 KB
-rw-r--r--
queues.cpython-313.opt-1.pyc
14.438 KB
-rw-r--r--
queues.cpython-313.opt-2.pyc
11.194 KB
-rw-r--r--
queues.cpython-313.pyc
14.438 KB
-rw-r--r--
runners.cpython-313.opt-1.pyc
9.904 KB
-rw-r--r--
runners.cpython-313.opt-2.pyc
8.167 KB
-rw-r--r--
runners.cpython-313.pyc
9.904 KB
-rw-r--r--
selector_events.cpython-313.opt-1.pyc
62.729 KB
-rw-r--r--
selector_events.cpython-313.opt-2.pyc
60.853 KB
-rw-r--r--
selector_events.cpython-313.pyc
62.884 KB
-rw-r--r--
sslproto.cpython-313.opt-1.pyc
40.744 KB
-rw-r--r--
sslproto.cpython-313.opt-2.pyc
37.317 KB
-rw-r--r--
sslproto.cpython-313.pyc
40.848 KB
-rw-r--r--
staggered.cpython-313.opt-1.pyc
6.23 KB
-rw-r--r--
staggered.cpython-313.opt-2.pyc
4.289 KB
-rw-r--r--
staggered.cpython-313.pyc
6.396 KB
-rw-r--r--
streams.cpython-313.opt-1.pyc
33.016 KB
-rw-r--r--
streams.cpython-313.opt-2.pyc
27.511 KB
-rw-r--r--
streams.cpython-313.pyc
33.466 KB
-rw-r--r--
subprocess.cpython-313.opt-1.pyc
11.997 KB
-rw-r--r--
subprocess.cpython-313.opt-2.pyc
11.871 KB
-rw-r--r--
subprocess.cpython-313.pyc
12.021 KB
-rw-r--r--
taskgroups.cpython-313.opt-1.pyc
8.894 KB
-rw-r--r--
taskgroups.cpython-313.opt-2.pyc
8.273 KB
-rw-r--r--
taskgroups.cpython-313.pyc
9.011 KB
-rw-r--r--
tasks.cpython-313.opt-1.pyc
42.219 KB
-rw-r--r--
tasks.cpython-313.opt-2.pyc
32.586 KB
-rw-r--r--
tasks.cpython-313.pyc
42.465 KB
-rw-r--r--
threads.cpython-313.opt-1.pyc
1.226 KB
-rw-r--r--
threads.cpython-313.opt-2.pyc
0.795 KB
-rw-r--r--
threads.cpython-313.pyc
1.226 KB
-rw-r--r--
timeouts.cpython-313.opt-1.pyc
8.335 KB
-rw-r--r--
timeouts.cpython-313.opt-2.pyc
6.852 KB
-rw-r--r--
timeouts.cpython-313.pyc
8.546 KB
-rw-r--r--
transports.cpython-313.opt-1.pyc
13.388 KB
-rw-r--r--
transports.cpython-313.opt-2.pyc
8.52 KB
-rw-r--r--
transports.cpython-313.pyc
13.409 KB
-rw-r--r--
trsock.cpython-313.opt-1.pyc
5.047 KB
-rw-r--r--
trsock.cpython-313.opt-2.pyc
4.81 KB
-rw-r--r--
trsock.cpython-313.pyc
5.047 KB
-rw-r--r--
unix_events.cpython-313.opt-1.pyc
67.951 KB
-rw-r--r--
unix_events.cpython-313.opt-2.pyc
63.316 KB
-rw-r--r--
unix_events.cpython-313.pyc
68.714 KB
-rw-r--r--
windows_events.cpython-313.opt-1.pyc
41.172 KB
-rw-r--r--
windows_events.cpython-313.opt-2.pyc
40.164 KB
-rw-r--r--
windows_events.cpython-313.pyc
41.224 KB
-rw-r--r--
windows_utils.cpython-313.opt-1.pyc
7.128 KB
-rw-r--r--
windows_utils.cpython-313.opt-2.pyc
6.715 KB
-rw-r--r--
windows_utils.cpython-313.pyc
7.295 KB
-rw-r--r--