]L iNddlmZddlZddlmZmZddlmZmZddl m Z ddl m Z m Z mZmZej dk\rddl mZnddlmZej d k\r dd l mZmZndd lmZmZe rd d lmZed ZedddZedZGddeeZGddeZy)) annotationsN)ABCMetaabstractmethod) AwaitableCallable) TracebackType) TYPE_CHECKINGAnyProtocoloverload) )TypeVar)r ) TypeVarTupleUnpack) CancelScopeT_RetvalT_contraT) contravariantdefaultPosArgsTc:eZdZeddZeddZdddZy) TaskStatuscyNselfs V/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/anyio/abc/_tasks.pystartedzTaskStatus.starteds14cyrrr values r!r"zTaskStatus.starteds03r#Ncy)zx Signal that the task has started. :param value: object passed back to the starter of the task Nrr%s r!r"zTaskStatus.started"r#)r zTaskStatus[None]returnNone)r&rr)r*r)r&zT_contra | Noner)r*)__name__ __module__ __qualname__r r"rr#r!rrs# 44 33 r#rceZdZUdZded<edd d dZedd d dZed dZe d d Z y) TaskGroupa Groups several asynchronous tasks together. :ivar cancel_scope: the cancel scope inherited by all child tasks :vartype cancel_scope: CancelScope .. note:: On asyncio, support for eager task factories is considered to be **experimental**. In particular, they don't follow the usual semantics of new tasks being scheduled on the next iteration of the event loop, and may thus cause unexpected behavior in code that wasn't written with such semantics in mind. r cancel_scopeN)namecy)a Start a new task in this task group. :param func: a coroutine function :param args: positional arguments to call the function with :param name: name of the task, for the purposes of introspection and debugging .. versionadded:: 3.0 Nrr funcr1argss r! start_soonzTaskGroup.start_soon:r(r#c Kyw)a Start a new task and wait until it signals for readiness. The target callable must accept a keyword argument ``task_status`` (of type :class:`TaskStatus`). Awaiting on this method will return whatever was passed to ``task_status.started()`` (``None`` by default). .. note:: The :class:`TaskStatus` class is generic, and the type argument should indicate the type of the value that will be passed to ``task_status.started()``. :param func: a coroutine function that accepts the ``task_status`` keyword argument :param args: positional arguments to call the function with :param name: an optional name for the task, for introspection and debugging :return: the value passed to ``task_status.started()`` :raises RuntimeError: if the task finishes without calling ``task_status.started()`` .. seealso:: :ref:`start_initialize` .. versionadded:: 3.0 Nrr3s r!startzTaskGroup.startKc Kyw)z:Enter the task group context and allow starting new tasks.Nrrs r! __aenter__zTaskGroup.__aenter__jr9r:c Kyw)zztype[BaseException] | Noner?zBaseException | Noner@zTracebackType | Noner)bool) r+r,r-__doc____annotations__rr6r8r<rArr#r!r/r/*s    :           +      <IIK,K&K% K  KKr#r/) metaclass) __future__rsysabcrrcollections.abcrrtypesrtypingr r r r version_infortyping_extensionsrr _core._tasksrrrrrr/rr#r!rPs" '/99w)w++6* :  :T4 @  #  (#  KK'KKr#