g7nOoOoOOFoOOFoOOFoOOFoOOFEoOOF E o OOF E o OOF E o OO F E o X MoX MoX M oX M"oXM$O* oO O 1oXoO oO oOoOoOoOoOO,OgoOOFoXM(9oodX^dc9c)z.A Future class similar to the one in PEP 3148.)Future wrap_futureisfutureN) GenericAlias) base_futures)events) exceptions)format_helpersc[XoOoOojOoXoOoOoOo Oo Oo Oo Oo OoOO,OgoOoOoXX1oXO 1oXM.O 1oO oO oOO goOoOoOoOoOoOO,Ogo Oo!Oo"Oo#Oo$X$o%Oo&Qo'd)raThis class is *almost* compatible with concurrent.futures.Future. Differences: - This class is not thread-safe. - result() and exception() do not take a timeout argument and raise an exception when the future isn't done yet. - Callbacks registered with add_done_callback() are always called via the event loop's call_soon(). - This class is not compatible with the wait() and as_completed() methods in the concurrent.futures package. NFloopcQ`WM1QiJTi+QiQMM 1%^0W M WMO11Qi dd)zInitialize the future. The optional event_loop argument allows explicitly setting the event loop object used by the future. If it's not provided, the future uses the default event loop. Nr) r get_event_loop_loop _callbacks get_debugr extract_stacksys _getframe_source_tracebackselfrs (/usr/lib64/python3.14/asyncio/futures.py__init__Future.__init__Gs\ <..0DJJ ::   ! !%3%A%A a &"D " "c.WMQ1!N)r _future_reprrs r__repr__Future.__repr__Ws((..rcQM%adQMkOQMM O/OQOQ,kQM%^QMQO$QM M Q1d)Nmessagez exception was never retrieved exceptionfuturesource_traceback)_Future__log_traceback _exception __class____name__rrcall_exception_handler)rexccontexts r__del__Future.__del__Zsq## oo >>**++IJ  d    ! !*.*@*@G& ' ))'2rcQM!r)r)r!s r_log_tracebackFuture._log_tracebackls###rc6Q%^ WO1bOQid)Nz'_log_traceback can only be set to FalseF) ValueErrorr))rvals rr3r4ps FG G$rc:QMkQ` WO1bQ!)z-Return the event loop the Future is bound to.z!Future object is not initialized.)r RuntimeErrorrs rget_loopFuture.get_loopvs!zz <BC C rcQM_QMkOQiQ!QM`WM1kQ!WMQM1kQ!)zCreate the CancelledError to raise if the Future is cancelled. This should only be called once when handling a cancellation since it erases the saved context exception value. N)_cancelled_exc_cancel_messager CancelledError)rr.s r_make_cancelled_errorFuture._make_cancelled_error}sf    *%%C"&D J    '++-C ++D,@,@AC rc~OQiQMW6w^dWQiTiQM 1d)zCancel the future and schedule callbacks. If the future is already done or cancelled, return False. Otherwise, change the future's state to cancelled, schedule the callbacks and return True. FT)r)_state_PENDING _CANCELLEDr>_Future__schedule_callbacks)rmsgs rcancel Future.cancels7 % ;;( "  " !!#rcQMOkQ%ad+QMO$QC"rm#QMMT QO5H$ d)zInternal: Ask the event loop to call all callbacks. The callbacks are scheduled to be called as soon as possible. Also clears the callback list. NNNNr/)rr call_soon)r callbackscallbackctxs r__schedule_callbacksFuture.__schedule_callbackssI OOA&  &MH JJ  ='rc(QMW6H!)z(Return True if the future was cancelled.)rCrEr!s r cancelledFuture.cancelleds{{j((rc(QMW6g!)zReturn True if the future is done. Done means either that a result / exception are available, or that the future was cancelled. )rCrDr!s rdone Future.dones {{h&&rc(QMW6X^QM1bQMW6w^WM O1bOQiQM_%QMMQM1bQM!)zReturn the result this future represents. If the future has been cancelled, raises CancelledError. If the future's result isn't yet available, raises InvalidStateError. If the future is done and has an exception set, this exception is raised. zResult is not ready.F) rCrEr@ _FINISHEDr InvalidStateErrorr)r*with_traceback _exception_tb_resultr!s rresult Future.resultst ;;* $,,. . ;;) #../EF F$ ?? &//001C1CD D||rcQMW6X^QM1bQMW6w^WM O1bOQiQM!)zReturn the exception that was set on this future. The exception (or None if no exception was set) is returned only if the future is done. If the future has been cancelled, raises CancelledError. If the future isn't done yet, raises InvalidStateError. zException is not set.F)rCrEr@rZr r[r)r*r!s rr&Future.exceptionsO ;;* $,,. . ;;) #../FG G$rr/cQMW6w^QMMTQO5dQ`WM 1kQM MT01d)zAdd a callback to be run when the future becomes done. The callback is called with a single argument - the future object. If the future is already done when this is called, the callback is scheduled with call_soon. rLN)rCrDrrM contextvars copy_contextrappend)rfnr/s radd_done_callbackFuture.add_done_callbacksN ;;( " JJ 7 ;%224 OO " "B= 1rcQMRRp+pCrm#T!6waH T#0KH kkkWQM1WQ1* kQ%^T@MO$Q!ppkkc)zmRemove all instances of a callback from the "call when done" list. Returns the number of callbacks removed. rK)rlen)rrgfrPfiltered_callbacks removed_counts rremove_done_callbackFuture.remove_done_callbacksh /3oo*.=(1!"'qh.= *DOO,s3E/FF !3OOA  *s A A cQMW6w^&WMQM OQ8 /1bTiW QiQM 1d)z~Mark the future done and set its result. If the future is already done when this method is called, raises InvalidStateError. : N)rCrDr r[r^rZrF)rr_s r set_resultFuture.set_resultsH ;;( "..$++b/IJ J   !!#rc~QMW6w^&WMQM OQ8 /1bW QW 1%^Q1kW QW 1%^WO1kTiTi QkTi QMQi WQiQM1OQid)zMark the future done and set an exception. If the future is already done when this method is called, raises InvalidStateError. rrzPStopIteration interacts badly with generators and cannot be raised into a FutureTN)rCrDr r[ isinstancetype StopIterationr9 __cause__ __context__r* __traceback__r]rZrFr))rr&new_excs r set_exceptionFuture.set_exceptions ;;( "..$++b/IJ J i & &! I i / /"$,-G!* "+ I#&44  !!##rc# QM1%a OQiQsQM1%a WO1bQM1!3c)NTzawait wasn't used with future)rW_asyncio_future_blockingr9r_r!s r __await__Future.__await__s@yy{{,0D )Jyy{{>? ?{{}sAA) __log_tracebackrrr>r=r*r]rr^rrCr)(r, __module__ __qualname____firstlineno____doc__rDrCr^r*rrr>r=rr)rr"r0 classmethodr__class_getitem__propertyr3setterr:r@rHrFrTrWr_r&rhrorsr}r__iter____static_attributes____classdictcell__) __classdict__s@rrrs$FGJ EON %O"t" /3 $L1 $$%% "  >) '  2t 2  $$.Hrrc`QMkQ1!W^QM!c9cr)r:AttributeErrorr)futr:s r _get_loopr)s:<<z    99  s  --cRQM1%^dQMQ1d)z?Helper setting the result only if the future was not cancelled.N)rTrs)rr_s r_set_result_unless_cancelledr5s }}NN6rchWQ1kQWMMG^6WMQM 2M QM1!QWMMG^6WMQM 2M QM1!Q!r) rw concurrentfuturesr?r argsr\r{r[)r. exc_classs r_convert_future_excr<sS IJ&&555((#((3BB3CTCTUU j((:: :++SXX6EEcFWFWXX rcNQM1%aNbQM1%^QM1QM1%adQM 1kQ_QM W Q11dQM1kQMQ1d)z8Copy state from a future to a concurrent.futures.Future.N) rWrTrHset_running_or_notify_cancelr&r}rr_rs)rsourcer&r_s r_set_concurrent_future_staterFs ;;===   2 2 4 4  "I  !4Y!?@f%rcvQM1%aNbQM1%^dQM1%^NbQM1%^QM1dQM1kQ_QM W Q11dQM 1kQMQ1d)ziInternal helper to copy state from another Future. The other Future may be a concurrent.futures.Future. N)rWrTrHr&r}rr_rs)rdestr&r_s r_copy_future_staterUs ;;=== ~~yy{{?  $$&    29= >]]_F OOF #rc[[[[[WP1%a4WPWMM1%a W O1bWP1%a4WPWMM1%a W O1bWP1%^ W P1JOjWP1%^ W P1JOjOjQQQ0OgkQQQQ0OgkPMQ1PMQ1d)aChain two futures so that when one completes, so does the other. The result (or exception) of source will be copied to destination. If destination is cancelled, source gets cancelled too. Compatible with both asyncio.Future and concurrent.futures.Future. z(A future is required for source argumentz-A future is required for destination argumentNcRWQ1%^ WT1dWT1dr)rrr)r'others r _set_state!_chain_future.._set_stateys F   u - ( 7rc:QM1%^5P_PPG^PM1dPMPM1ddr)rTrHcall_soon_threadsafe) destination dest_loopr source_loops r_call_check_cancel)_chain_future.._call_check_cancels?  " ""kY&> 00? #rc:PM1%^P_PM1%^dP_PPG^ PPQ1dPM1%^dPMPPQ1dr)rT is_closedr)rrrrrs r_call_set_state&_chain_future.._call_set_statesd  ! ! # #%)*=*=*?*?    [ 8 {F +""$$  * *:{F Kr)rrvrrr TypeErrorrrh)rrrrrrrs`` @@@r _chain_futureris F  Jv/9/A/A/H/H%J%JBCC K K4>4F4F4M4M*O*OGHH'/'7'7)F#TK*2;*?*? +&TI8 @ L L!!"45 _-rrcWQ1%^Q!WQWMM1%a NOQ8 /1bQ`W M 1kQM1kWT1Q!)z&Wrap concurrent.futures.Future object.z+concurrent.futures.Future is expected, got ) rrvrrrr r create_futurer)r'r new_futures rrrss fj0077 8 8A 5fZ@A 8 |$$&##%J&% r) r__all__concurrent.futuresrrdloggingrtypesrrr r r rrDrErZDEBUG STACK_DEBUGr _PyFuturerrrrrrr_asyncio_CFuture ImportErrorrrrs4        $ $  " " mma DDP    &$().X  ( !'FX   sB++B43B4