Sindbad~EG File Manager
�
(ΜgD* � �� � d dl Z d dlZd dlZd dlmZ d� ZdZ G d� d� Z G d� dej � Z G d � d
ej � Z
edk( r ej � yy)� N)�supportc �. � t j d � y �N)�asyncio�set_event_loop_policy� � �;/usr/local/lib/python3.12/test/test_asyncio/test_waitfor.py�tearDownModuler s � ��!�!�$�'r g-C��6?c � � e Zd ZdZdZd� Zd� Zy)�SlowTaskz? Task will run for this defined time, ignoring cancel requests 皙�����?c � � d| _ y )NF)�exited��selfs r
�__init__zSlowTask.__init__ s � ���r c � � K � t j � | j z } |t j � z
}|dk r d| _ y t j |� � d { ��� �D7 �# t j
$ r Y �w xY w�w)NTr )�time� monotonic�TASK_TIMEOUTr �sleep�CancelledErrorr )r �exitat�tosleeps r
�runzSlowTask.run s| � �� ����!�D�$5�$5�5����t�~�~�/�/�G��!�|�� ���
��m�m�G�,�,�,�
� -���)�)�
��
�s<