HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/starlette/__pycache__/concurrency.cpython-310.pyc
o

�h��@s�ddlmZddlZddlZddlZddlZddlZejdkr&ddlm	Z	nddl
m	Z	e	d�Ze�d�Z
ddd�Zddd�ZGdd�de�Zd dd�Zd!dd�ZdS)"�)�annotationsN)��
)�	ParamSpec�P�T�args�tuple[typing.Callable, dict]�return�Nonec	�s��t�dt�t��4IdH�'�d�fdd�}|D]\}}��|tj|fi|���qWd�IdHdS1IdHs<wYdS)	NzOrun_until_first_complete is deprecated and will be removed in a future version.�func�%typing.Callable[[], typing.Coroutine]r
rc�s�|�IdH�j��dS�N)�cancel_scope�cancel)r��
task_group��H/usr/local/CyberCP/lib/python3.10/site-packages/starlette/concurrency.py�runs�z%run_until_first_complete.<locals>.run)rr
r
r)�warnings�warn�DeprecationWarning�anyio�create_task_group�
start_soon�	functools�partial)rrr�kwargsrrr�run_until_first_completes���.�rr�typing.Callable[P, T]�P.argsr�P.kwargsc�s,�tj|g|�Ri|��}tj�|�IdHSr)rrr�	to_thread�run_sync)rrrrrr�run_in_threadpool#s�r%c@seZdZdS)�_StopIterationN)�__name__�
__module__�__qualname__rrrrr&(sr&�iterator�typing.Iterator[T]cCszt|�WStyt�wr)�next�
StopIterationr&)r*rrr�_next,s

�r.�typing.Iterable[T]�typing.AsyncIterator[T]cCs>�t|�}	z
tj�t|�IdHVWn
tyYdSwqr)�iterrr#r$r.r&)r*�as_iteratorrrr�iterate_in_threadpool6s���r3)rr	r
r)rr rr!rr"r
r)r*r+r
r)r*r/r
r0)�
__future__rr�sys�typingr�anyio.to_threadr�version_infor�typing_extensionsr�TypeVarrrr%�	Exceptionr&r.r3rrrr�<module>s