%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/async_helpers.cpython-310.pyc

o

K��^	�@sNddlZddlZddlZe�d�Zdd�Zddd�Zdd	�ZGd
d�d�Z	dS)
�Nzsubiquitycore.async_helperscCs&z|��WdStjyYdSw�N)�result�asyncio�CancelledError)�fut�r�3/usr/share/subiquity/subiquitycore/async_helpers.py�_dones
�r	TcCsBt��}t�|�rt�|�}n|}|r|�t�|�tj|�|Sr)r�get_event_loop�iscoroutine�Task�add_done_callbackr	�	call_soon�
ensure_future)�coro�propagate_errors�loop�taskrrr�
schedule_tasks

rc�s@�t��}z|jd|g|�R�IdHWStjjytj�wr)rr
�run_in_executor�
concurrent�futuresr)�func�argsrrrr�
run_in_thread*s��rc@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�SingleInstanceTaskTcCs||_||_d|_dSr)rrr)�selfrrrrr�__init__4s
zSingleInstanceTask.__init__c�sF�|dur|��z|IdHWn	tyYnwt|j|j�dSr)�cancel�
BaseExceptionrrr)r�oldrrr�_start9s��zSingleInstanceTask._startc�s�|j|i|��IdH|jSr)�
start_syncr)rr�kwrrr�startBs�zSingleInstanceTask.startcOsB|j}|j|i|��}t�|�rt�|�|_n||_t|�|��Sr)rrrrrrr!)rrr#r rrrrr"Fs
zSingleInstanceTask.start_syncc�s*�	z|jIdHWStjyYnwqr)rrr)rrrr�waitOs���zSingleInstanceTask.waitN�T)�__name__�
__module__�__qualname__rr!r$r"r%rrrrr2s
		rr&)
r�concurrent.futuresr�logging�	getLogger�logr	rrrrrrr�<module>s



Zerion Mini Shell 1.0