Format: application/x-python-code
1 o
2
3 ;'h� � @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZ ddl m
4 Z
5 mZ dd lm
6 Z
7 G d
8 d� dee �Ze� ZG dd
9 � d
10 �Ze dd dd��Zdd!dd�Zd"dd�Zd#dd�ZdS )$� )�annotationsN)� Generator)�contextmanager)�
11 TracebackType� )� TaskGroup�
12 TaskStatus� )�get_async_backendc @ s e Zd Zdd dd�ZdS )
13 �_IgnoredTaskStatusN�value�object�return�Nonec C s d S �N� ��selfr r r �HC:\Users\shubh\Videos\agent\nova\Lib\site-packages\anyio/_core/_tasks.py�started
14 � z_IgnoredTaskStatus.startedr )r r
15 r r )�__name__�
16 __module__�__qualname__r r r r r r s r c @ s� e Zd ZdZejdd�d$d d
17 �Zd%dd
18 �Zed&dd��Z e j
19 d'dd��Z ed(dd��Zed(dd��Zed(dd��Z
20 e
21 j
22 d)dd��Z
23 d*dd�Zd+d!d"�Zd#S ),�CancelScopez�
24 Wraps a unit of work that can be made separately cancellable.
25
26 :param deadline: The time (clock value) when this scope is cancelled automatically
27 :param shield: ``True`` to shield the cancel scope from external cancellation
28 F��deadline�shieldr �floatr �boolr c C s t � j||d�S )N)r r )r
29 �create_cancel_scope)�clsr r r r r �__new__ s zCancelScope.__new__r c C � t �)zCancel this scope immediately.��NotImplementedError�r r r r �cancel! � zCancelScope.cancelc C r# )z�
30 The time (clock value) when this scope is cancelled automatically.
31
32 Will be ``float('inf')`` if no timeout has been set.
33
34 r$ r&