$81 GRAYBYTE WORDPRESS FILE MANAGER $28

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python38/lib64/python3.8/asyncio/__pycache__/

HOME
Current File : /opt/alt/python38/lib64/python3.8/asyncio/__pycache__//futures.cpython-38.opt-1.pyc
U

i�fb3�@s�dZdZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZejZej
Z
ejZejZejdZGd	d
�d
�ZeZdd�Zd
d�Zdd�Zdd�Zdd�Zdd�Zdd�dd�ZzddlZWnek
r�YnXejZZdS)z.A Future class similar to the one in PEP 3148.)�Future�wrap_future�isfuture�N�)�base_futures)�events)�
exceptions)�format_helpersc@s�eZdZdZeZdZdZdZdZ	dZ
dZdd�dd�Ze
jZdd�Zd	d
�Zedd��Zejd
d��Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�dd�Zdd �Zd!d"�Zd#d$�Zd%d&�Z e Z!dS)'ra,This 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��loopcCs@|dkrt��|_n||_g|_|j��r<t�t�d��|_	dS)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�
_callbacksZ	get_debugr	�
extract_stack�sys�	_getframe�_source_traceback��selfr�r�4/opt/alt/python38/lib64/python3.8/asyncio/futures.py�__init__Ds
�zFuture.__init__cCsd�|jjd�|����S)Nz<{} {}>� )�format�	__class__�__name__�join�
_repr_info�rrrr�__repr__Vs
�zFuture.__repr__cCsF|js
dS|j}|jj�d�||d�}|jr6|j|d<|j�|�dS)Nz exception was never retrieved)�message�	exception�futureZsource_traceback)�_Future__log_traceback�
_exceptionrrrr
Zcall_exception_handler)r�exc�contextrrr�__del__Zs�
zFuture.__del__cCs|jS�N)r#rrrr�_log_tracebackjszFuture._log_tracebackcCst|�rtd��d|_dS)Nz'_log_traceback can only be set to FalseF)�bool�
ValueErrorr#)r�valrrrr)nscCs|j}|dkrtd��|S)z-Return the event loop the Future is bound to.Nz!Future object is not initialized.)r
�RuntimeErrorrrrr�get_looptszFuture.get_loopcCs&d|_|jtkrdSt|_|��dS)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�
_CANCELLED�_Future__schedule_callbacksrrrr�cancel{s
z
Future.cancelcCsH|jdd�}|sdSg|jdd�<|D]\}}|jj|||d�q(dS)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�r&)rr
�	call_soon)rZ	callbacks�callback�ctxrrrZ__schedule_callbacks�szFuture.__schedule_callbackscCs
|jtkS)z(Return True if the future was cancelled.)r/r1rrrr�	cancelled�szFuture.cancelledcCs
|jtkS)z�Return True if the future is done.

        Done means either that a result / exception are available, or that the
        future was cancelled.
        )r/r0rrrr�done�szFuture.donecCs@|jtkrtj�|jtkr$t�d��d|_|jdk	r:|j�|jS)aReturn 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.FN)	r/r1r�CancelledError�	_FINISHED�InvalidStateErrorr#r$�_resultrrrr�result�s



z
Future.resultcCs0|jtkrtj�|jtkr$t�d��d|_|jS)a&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)r/r1rr:r;r<r#r$rrrrr!�s


zFuture.exceptionr4cCsB|jtkr|jj|||d�n |dkr.t��}|j�||f�dS)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.
        r4N)r/r0r
r5�contextvarsZcopy_contextr�append)r�fnr&rrr�add_done_callback�s

zFuture.add_done_callbackcs<�fdd�|jD�}t|j�t|�}|r8||jdd�<|S)z}Remove all instances of a callback from the "call when done" list.

        Returns the number of callbacks removed.
        cs g|]\}}|�kr||f�qSrr)�.0�fr7�rArr�
<listcomp>�s�z/Future.remove_done_callback.<locals>.<listcomp>N)r�len)rrAZfiltered_callbacksZ
removed_countrrEr�remove_done_callback�s
�zFuture.remove_done_callbackcCs8|jtkr t�|j�d|����||_t|_|��dS)z�Mark the future done and set its result.

        If the future is already done when this method is called, raises
        InvalidStateError.
        �: N)r/r0rr<r=r;r2)rr>rrr�
set_result�s

zFuture.set_resultcCsb|jtkr t�|j�d|����t|t�r0|�}t|�tkrDtd��||_t	|_|�
�d|_dS)z�Mark the future done and set an exception.

        If the future is already done when this method is called, raises
        InvalidStateError.
        rIzPStopIteration interacts badly with generators and cannot be raised into a FutureTN)r/r0rr<�
isinstance�type�
StopIteration�	TypeErrorr$r;r2r#)rr!rrr�
set_exception�s

zFuture.set_exceptionccs,|��sd|_|V|��s$td��|��S)NTzawait wasn't used with future)r9�_asyncio_future_blockingr-r>rrrr�	__await__szFuture.__await__)"r�
__module__�__qualname__�__doc__r0r/r=r$r
rrPr#rrZ_future_repr_inforrr'�propertyr)�setterr.r3r2r8r9r>r!rBrHrJrOrQ�__iter__rrrrrs:

rcCs,z
|j}Wntk
rYnX|�S|jSr()r.�AttributeErrorr
)�futr.rrr�	_get_loops
rZcCs|��rdS|�|�dS)z?Helper setting the result only if the future was not cancelled.N)r8rJ)rYr>rrr�_set_result_unless_cancelledsr[cCsXt|�}|tjjkr tj|j�S|tjjkr8tj|j�S|tjjkrPtj|j�S|SdSr()rL�
concurrent�futuresr:r�args�TimeoutErrorr<)r%Z	exc_classrrr�_convert_future_exc#sr`cCsR|��r|��|��sdS|��}|dk	r<|�t|��n|��}|�|�dS)z8Copy state from a future to a concurrent.futures.Future.N)r8r3Zset_running_or_notify_cancelr!rOr`r>rJ)r\�sourcer!r>rrr�_set_concurrent_future_state/srbcCsT|��rdS|��r|��n2|��}|dk	r>|�t|��n|��}|�|�dS)zqInternal helper to copy state from another Future.

    The other Future may be a concurrent.futures.Future.
    N)r8r3r!rOr`r>rJ)ra�destr!r>rrr�_copy_future_state>s
rdcs�t��st�tjj�std��t��s<t�tjj�s<td��t��rLt��nd�t��r`t��nd�dd�����fdd�}����fdd	�}��|���|�dS)
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 argumentNcSs"t|�rt||�n
t||�dSr()rrdrb)r"�otherrrr�
_set_statebsz!_chain_future.<locals>._set_statecs2|��r.�dks��kr"���n���j�dSr()r8r3�call_soon_threadsafe)�destination)�	dest_loopra�source_looprr�_call_check_cancelhs
z)_chain_future.<locals>._call_check_cancelcsJ���r�dk	r���rdS�dks,��kr8��|�n����|�dSr()r8Z	is_closedrg)ra)rfrirhrjrr�_call_set_stateos��z&_chain_future.<locals>._call_set_state)rrKr\r]rrNrZrB)rarhrkrlr)rfrirhrarjr�
_chain_futureRs��	
rmr
cCs2t|�r|S|dkrt��}|��}t||�|S)z&Wrap concurrent.futures.Future object.N)rrrZ
create_futurerm)r"rZ
new_futurerrrr|s
r)rT�__all__Zconcurrent.futuresr\r?Zloggingr�rrrr	rr0r1r;�DEBUGZSTACK_DEBUGrZ	_PyFuturerZr[r`rbrdrmrZ_asyncio�ImportErrorZ_CFuturerrrr�<module>s:
q*



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 Oct 2024 8.34 AM
root / linksafe
0755
__init__.cpython-38.opt-1.pyc
0.747 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__init__.cpython-38.opt-2.pyc
0.692 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__init__.cpython-38.pyc
0.747 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__main__.cpython-38.opt-1.pyc
3.118 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__main__.cpython-38.opt-2.pyc
3.118 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__main__.cpython-38.pyc
3.118 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_events.cpython-38.opt-1.pyc
49.618 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_events.cpython-38.opt-2.pyc
40.848 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_events.cpython-38.pyc
49.839 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_futures.cpython-38.opt-1.pyc
1.868 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_futures.cpython-38.opt-2.pyc
1.62 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_futures.cpython-38.pyc
1.868 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_subprocess.cpython-38.opt-1.pyc
9.116 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_subprocess.cpython-38.opt-2.pyc
9.019 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_subprocess.cpython-38.pyc
9.21 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_tasks.cpython-38.opt-1.pyc
1.913 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_tasks.cpython-38.opt-2.pyc
1.913 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base_tasks.cpython-38.pyc
1.913 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
constants.cpython-38.opt-1.pyc
0.582 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
constants.cpython-38.opt-2.pyc
0.582 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
constants.cpython-38.pyc
0.582 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
coroutines.cpython-38.opt-1.pyc
6.43 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
coroutines.cpython-38.opt-2.pyc
6.203 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
coroutines.cpython-38.pyc
6.513 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
events.cpython-38.opt-1.pyc
27.309 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
events.cpython-38.opt-2.pyc
18.469 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
events.cpython-38.pyc
27.414 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
exceptions.cpython-38.opt-1.pyc
2.504 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
exceptions.cpython-38.opt-2.pyc
1.875 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
exceptions.cpython-38.pyc
2.504 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
format_helpers.cpython-38.opt-1.pyc
2.292 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
format_helpers.cpython-38.opt-2.pyc
2.054 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
format_helpers.cpython-38.pyc
2.292 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
futures.cpython-38.opt-1.pyc
10.772 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
futures.cpython-38.opt-2.pyc
7.544 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
futures.cpython-38.pyc
10.945 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
locks.cpython-38.opt-1.pyc
15.999 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
locks.cpython-38.opt-2.pyc
9.552 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
locks.cpython-38.pyc
15.999 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
log.cpython-38.opt-1.pyc
0.235 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
log.cpython-38.opt-2.pyc
0.197 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
log.cpython-38.pyc
0.235 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
proactor_events.cpython-38.opt-1.pyc
23.322 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
proactor_events.cpython-38.opt-2.pyc
22.932 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
proactor_events.cpython-38.pyc
23.594 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
protocols.cpython-38.opt-1.pyc
8.427 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
protocols.cpython-38.opt-2.pyc
3.291 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
protocols.cpython-38.pyc
8.427 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
queues.cpython-38.opt-1.pyc
8.199 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
queues.cpython-38.opt-2.pyc
5.583 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
queues.cpython-38.pyc
8.199 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
runners.cpython-38.opt-1.pyc
1.916 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
runners.cpython-38.opt-2.pyc
1.25 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
runners.cpython-38.pyc
1.916 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
selector_events.cpython-38.opt-1.pyc
28.945 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
selector_events.cpython-38.opt-2.pyc
27.35 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
selector_events.cpython-38.pyc
29.004 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
sslproto.cpython-38.opt-1.pyc
20.931 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
sslproto.cpython-38.opt-2.pyc
14.287 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
sslproto.cpython-38.pyc
21.126 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
staggered.cpython-38.opt-1.pyc
3.867 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
staggered.cpython-38.opt-2.pyc
1.784 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
staggered.cpython-38.pyc
4.036 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
streams.cpython-38.opt-1.pyc
19.902 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
streams.cpython-38.opt-2.pyc
14.146 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
streams.cpython-38.pyc
20.171 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
subprocess.cpython-38.opt-1.pyc
7.171 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
subprocess.cpython-38.opt-2.pyc
7.046 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
subprocess.cpython-38.pyc
7.2 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
tasks.cpython-38.opt-1.pyc
23.672 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
tasks.cpython-38.opt-2.pyc
16.264 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
tasks.cpython-38.pyc
23.727 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
transports.cpython-38.opt-1.pyc
11.96 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
transports.cpython-38.opt-2.pyc
6.686 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
transports.cpython-38.pyc
11.989 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
trsock.cpython-38.opt-1.pyc
8.299 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
trsock.cpython-38.opt-2.pyc
8.049 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
trsock.cpython-38.pyc
8.299 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
unix_events.cpython-38.opt-1.pyc
38.057 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
unix_events.cpython-38.opt-2.pyc
33.524 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
unix_events.cpython-38.pyc
38.429 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
windows_events.cpython-38.opt-1.pyc
24.001 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
windows_events.cpython-38.opt-2.pyc
22.92 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
windows_events.cpython-38.pyc
24.032 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
windows_utils.cpython-38.opt-1.pyc
4.299 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
windows_utils.cpython-38.opt-2.pyc
3.875 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
windows_utils.cpython-38.pyc
4.381 KB
23 Sep 2024 11.26 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF