ó
    Eñi…
  ã                  ó
  • S SK Jr  S SKrS SKJs  Jr  SrS SK	r	S SK
Jr  S SKJr  S SKJr  SSKJr  SS	KJr  \	R(                  S
:¼  a	  S SKJrJr  OS SKJrJr  \" S5      r\" S5      rSSSS.           SS jjrSS jrg)é    )ÚannotationsN)Úrun_syncÚcurrent_default_thread_limiter)ÚCallable)ÚTypeVar)Úwarné   )Úget_async_backend)ÚCapacityLimiter)é   é   )ÚTypeVarTupleÚUnpackÚT_RetvalÚPosArgsTF)Úabandon_on_cancelÚcancellableÚlimiterc             ‡  óv   #   • Ub  Un[        S[        SS9  [        5       R                  XXS9I Sh  v•N $  N7f)a  
Call the given function with the given arguments in a worker thread.

If the ``abandon_on_cancel`` option is enabled and the task waiting for its
completion is cancelled, the thread will still run its course but its
return value (or any raised exception) will be ignored.

:param func: a callable
:param args: positional arguments for the callable
:param abandon_on_cancel: ``True`` to abandon the thread (leaving it to run
    unchecked on own) if the host task is cancelled, ``False`` to ignore
    cancellations in the host task until the operation has completed in the worker
    thread
:param cancellable: deprecated alias of ``abandon_on_cancel``; will override
    ``abandon_on_cancel`` if both parameters are passed
:param limiter: capacity limiter to use to limit the total amount of threads running
    (if omitted, the default limiter is used)
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread
:return: an awaitable that yields the return value of the function.

NzƒThe `cancellable=` keyword argument to `anyio.to_thread.run_sync` is deprecated since AnyIO 4.1.0; use `abandon_on_cancel=` insteadé   )Ú
stacklevel)r   r   )r   ÚDeprecationWarningr
   Úrun_sync_in_worker_thread)Úfuncr   r   r   Úargss        ÚL/home/mande/repo/quber/.venv/lib/python3.13/site-packages/anyio/to_thread.pyr   r      sT   é € ð: ÑØ'ÐÜðMäØò		
ô #Ó$×>Ñ>ØÐ&7ð ?ð ÷ ð ñ ùs   ‚09²7³9c                 ó2   • [        5       R                  5       $ )zì
Return the capacity limiter that is used by default to limit the number of
concurrent threads.

:return: a capacity limiter object
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
    current thread

)r
   r   © ó    r   r   r   D   s   € ô Ó×=Ñ=Ó?Ð?r   )r   z&Callable[[Unpack[PosArgsT]], T_Retval]r   zUnpack[PosArgsT]r   Úboolr   zbool | Noner   zCapacityLimiter | NoneÚreturnr   )r!   r   )Ú
__future__r   ÚbuiltinsÚ@py_builtinsÚ_pytest.assertion.rewriteÚ	assertionÚrewriteÚ
@pytest_arÚ__all__ÚsysÚcollections.abcr   Útypingr   Úwarningsr   Ú_core._eventloopr
   Úabcr   Úversion_infor   r   Útyping_extensionsr   r   r   r   r   r   r   Ú<module>r2      s¢   ðÝ "ç  „ ð €ó
 Ý $Ý Ý å /Ý  à×Ñ�wÓß+Ð+ç6á�:Ó€Ù˜
Ó#€ð $Ø#Ø&*ñ(Ø
0ð(àð(ð ð(ð ð	(ð
 $ð(ð õ(õV
@r   