-8q' d Z ddlZddlZddlZddlZddlZdZdZdZdZ dZ dZd Zd Z dZe eee egZe ded ede dediZ ej d Z G d de Z G d de ZeZ G d de Z G d de Z G d de Z G d de Z G d de Z G d d e Zd! Zd" Zd.d#Z ej! d$d% Z"defd&Z#d.d'Z$ G d( d)e Z% G d* d+e Z& G d, d-e' Z(dS )/z"Brian Quinlan (brian@sweetapp.com) NFIRST_COMPLETEDFIRST_EXCEPTION ALL_COMPLETED _AS_COMPLETEDPENDINGRUNNING CANCELLEDCANCELLED_AND_NOTIFIEDFINISHEDpendingrunning cancelledfinishedzconcurrent.futuresc e Zd ZdZdS )Errorz-Base class for all future-related exceptions.N__name__ __module____qualname____doc__ ?/opt/alt/python311/lib64/python3.11/concurrent/futures/_base.pyr r - s 77Dr r c e Zd ZdZdS )CancelledErrorzThe Future was cancelled.Nr r r r r r 1 s ##Dr r c e Zd ZdZdS )InvalidStateErrorz+The operation is not allowed in this state.Nr r r r r r 7 s 55Dr r c * e Zd ZdZd Zd Zd Zd ZdS )_Waiterz;Provides the event that wait() and as_completed() block on.c D t j | _ g | _ d S N) threadingEventeventfinished_futuresselfs r __init__z_Waiter.__init__= s _&& "r c : | j | d S r! r% appendr' futures r add_resultz_Waiter.add_resultA $$V,,,,,r c : | j | d S r! r* r, s r add_exceptionz_Waiter.add_exceptionD r/ r c : | j | d S r! r* r, s r add_cancelledz_Waiter.add_cancelledG r/ r N)r r r r r( r. r1 r3 r r r r r ; sV EE# # #- - -- - -- - - - -r r c @ e Zd ZdZ fdZ fdZ fdZ fdZ xZS )_AsCompletedWaiterzUsed by as_completed().c t t | t j | _ d S r! )superr5 r( r" Locklock)r' __class__s r r( z_AsCompletedWaiter.__init__M s3 $''00222N$$ r c | j 5 t t | | | j d d d d S # 1 swxY w Y d S r! )r9 r7 r5 r. r$ setr' r- r: s r r. z_AsCompletedWaiter.add_resultQ s Y $d++66v>>>JNN AAAAc | j 5 t t | | | j d d d d S # 1 swxY w Y d S r! )r9 r7 r5 r1 r$ r<