§
    ÎÐj¶  ã                   óX   — d Z ddlmZ ddlmZ  edd¬¦  «        Zd„ Zed„ ¦   «         ZdS )	zVCooperative cancellation scoped to one worker, including its loading and decode calls.é    )Úcontextmanager)Ú
ContextVarÚwangp_check_cancelledN)Údefaultc                  óT   — t                                ¦   «         } | � | ¦   «          d S d S ©N)Ú_check_cancelledÚget)Úcallbacks    úAC:\Users\johnn\OneDrive\Documents\AI\shared\utils\cancellation.pyÚcheck_cancelledr      s0   € Ý×#Ò#Ñ%Ô%€HØÐØˆ‰
Œ
ˆ
ˆ
ˆ
ð Ðó    c              #   óò   K  — t                                | ¦  «        }	 t          ¦   «          d V — t          ¦   «          t                                |¦  «         d S # t                                |¦  «         w xY wr   )r	   Úsetr   Úreset)r   Útokens     r   Úcancellation_contextr      st   è è € å× Ò  Ñ*Ô*€Eð&ÝÑÔÐØˆˆˆÝÑÔÐå×Ò˜uÑ%Ô%Ð%Ð%Ð%øÕ×Ò˜uÑ%Ô%Ð%Ð%øøøs   ž A ÁA6)Ú__doc__Ú
contextlibr   Úcontextvarsr   r	   r   r   © r   r   ú<module>r      s{   ðà \Ð \à %Ð %Ð %Ð %Ð %Ð %Ø "Ð "Ð "Ð "Ð "Ð "ð �:Ð5¸tÐDÑDÔDÐ ðð ð ð ð&ð &ñ „ð&ð &ð &r   