g7csnOoOoOOFoOOFoOOFoOOFoOOFEoOOF 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_futureisfutureiN) GenericAlias) base_futures)events) exceptions)format_helperscs[XoOoOojOoXoOoOoOo Oo Oo Oo Oo OoOO,OgoOoOoXX1oXO 1oXM.O 1oO oO oOO goOoOoOoOoOoOO,Ogo Oo!Oo"Oo#Oo$X$o%Oo&Qo'd)riaThis 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. NFloopcsQ`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) rget_event_loop_loop _callbacksZ get_debugrZ extract_stacksysZ _getframe_source_tracebackselfr  (/usr/lib64/python3.14/asyncio/futures.py__init__ZFuture.__init__Gs\ <..0DJJ ::   ! !%3%A%A a &"D " "cs.WMQ1!N)rZ _future_reprr r__repr__ZFuture.__repr__Ws((..rcsQM%adQMkOQMM O/OQOQ,kQM%^QMQO$QM M Q1d)NZmessagez exception was never retrieved exceptionfutureZsource_traceback)_Future__log_traceback _exceptionZ __class____name__rr Zcall_exception_handler)rexccontext r__del__ZFuture.__del__Zsq## oo >>**++IJ  d    ! !*.*@*@G& ' ))'2rcsQM!r)rrrr_log_tracebackFuture._log_tracebackls###rcs6Q%^ WO1bOQid)Nz'_log_traceback can only be set to FalseF)Z ValueErrorr)rZvalrrr"r#ps FG G$rcs:QMkQ` WO1bQ!)z-Return the event loop the Future is bound to.z!Future object is not initialized.)r RuntimeErrorrrrget_loopZFuture.get_loopvs!zz <BC C rcsQM_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_messagerCancelledError)rrrr_make_cancelled_errorZFuture._make_cancelled_error}sf    *%%C"&D J    '++-C ++D,@,@AC rcs~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)rZmsgrrcancelZ Future.cancels7 % ;;( "  " !!#rcsQMOkQ%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)r r call_soon)rZ callbacksZcallbackctx rZ__schedule_callbacksZFuture.__schedule_callbackssI OOA&  &MH JJ  ='rcs(QMW6H!)z(Return True if the future was cancelled.)r*r,rrr cancelledZFuture.cancelleds{{j((rcs(QMW6g!)zReturn True if the future is done. Done means either that a result / exception are available, or that the future was cancelled. )r*r+rrrdoneZ Future.dones {{h&&rcs(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) r*r,r) _FINISHEDrInvalidStateErrorrrwith_traceback _exception_tb_resultrrrresultZ Future.resultst ;;* $,,. . ;;) #../EF F$ ?? &//001C1CD D||rcsQMW6X^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)r*r,r)r6rr7rrrrrrZFuture.exceptionsO ;;* $,,. . ;;) #../FG G$rrcsQMW6w^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. r0N)r*r+r r1 contextvarsZ copy_contextr Zappend)rfnrr radd_done_callbackZFuture.add_done_callbacksN ;;( " JJ 7 ;%224 OO " "B= 1rcsQMRRp+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. r/)r Zlen)rr=Zfr2Zfiltered_callbacksZ removed_counts rremove_done_callbackZFuture.remove_done_callbacksh /3oo*.=(1!"'qh.= *DOO,s3E/FF !3OOA  *s A A csQMW6w^&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)r*r+rr7r:r6r-)rr;rr set_resultZFuture.set_resultsH ;;( "..$++b/IJ J   !!#rcs~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. r@zPStopIteration interacts badly with generators and cannot be raised into a FutureTN)r*r+rr7 isinstancetypeZ StopIterationr$Z __cause__Z __context__r __traceback__r9r6r-r)rrZnew_excr r set_exceptionZFuture.set_exceptions ;;( "..$++b/IJ J i & &! I i / /"$,-G!* "+ I#&44  !!##rc#s QM1%a OQiQsQM1%a WO1bQM1!3c)NTzawait wasn't used with future)r5_asyncio_future_blockingr$r;rrr __await__ZFuture.__await__s@yy{{,0D )Jyy{{>? ?{{}sAA) Z__log_tracebackrFr r'r&rr9r r:rr*r)(rZ __module__Z __qualname__Z__firstlineno____doc__r+r*r:rr rr'r&rFrrrr!Z classmethodrZ__class_getitem__Zpropertyr"Zsetterr%r)r.r-r4r5r;rr>r?rArErGZ__iter__Z__static_attributes__Z__classdictcell__)Z __classdict__s@rrrs$FGJ EON %O"t" /3 $L1 $$%% "  >) '  2t 2  $$.Hrrcs`QMkQ1!W^QM!c9cr)r%ZAttributeErrorr )futr%rr _get_looprJ)s:<<z    99  s  --csRQM1%^dQMQ1d)z?Helper setting the result only if the future was not cancelled.N)r4rA)rIr;rr_set_result_unless_cancelledrK5s }}NN6rcshWQ1kQWMMG^6WMQM 2M QM1!QWMMG^6WMQM 2M QM1!Q!r) rC concurrentfuturesr(rZargsr8rDr7)rZ exc_classrr_convert_future_excrN<sS IJ&&555((#((3BB3CTCTUU j((:: :++SXX6EEcFWFWXX rcsNQM1%aNbQM1%^QM1QM1%adQM 1kQ_QM W Q11dQM1kQMQ1d)z8Copy state from a future to a concurrent.futures.Future.N) r5r4r.Zset_running_or_notify_cancelrrErNr;rA)rLsourcerr;r3r_set_concurrent_future_staterPFs ;;===   2 2 4 4  "I  !4Y!?@f%rcsvQM1%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)r5r4r.rrErNr;rA)rOZdestrr;r3r_copy_future_staterQUs ;;=== ~~yy{{?  $$&    29= >]]_F OOF #rcs[[[[[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 argumentNcsRWQ1%^ WT1dWT1dr)rrQrP)rZotherrr _set_stateZ!_chain_future.._set_stateys F   u - ( 7rcs:QM1%^5P_PPG^PM1dPMPM1ddr)r4r.call_soon_threadsafe) destination dest_looprO source_loops r_call_check_cancelZ)_chain_future.._call_check_cancels?  " ""kY&> 00? #rcs:PM1%^P_PM1%^dP_PPG^ PPQ1dPM1%^dPMPPQ1dr)r4Z is_closedrS)rOrRrUrTrVs r_call_set_stateZ&_chain_future.._call_set_statesd  ! ! # #%)*=*=*?*?    [ 8 {F +""$$  * *:{F Kr)rrBrLrMrZ TypeErrorrJr>)rOrTrWrXrRrUrVs`` @@@r _chain_futurerYis F  Jv/9/A/A/H/H%J%JBCC K K4>4F4F4M4M*O*OGHH'/'7'7)F#TK*2;*?*? +&TI8 @ L L!!"45 _-rr csWQ1%^Q!WQWMM1%a NOQ8 /1bQ`W M 1kQM1kWT1Q!)z&Wrap concurrent.futures.Future object.z+concurrent.futures.Future is expected, got ) rrBrLrMrrr Z create_futurerY)rr Z new_futurer rrrss fj0077 8 8A 5fZ@A 8 |$$&##%J&% r) rHZ__all__Zconcurrent.futuresrLr<Zloggingr ZtypesrZrrrrrr+r,r6ZDEBUGZ STACK_DEBUGrZ _PyFuturerJrKrNrPrQrYrZ_asyncioZ_CFutureZ ImportError)rrrZs4        $ $  " " mma DDP    &$().X  ( !'FX   sB++B43B4