Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tornado/__pycache__/queues.cpython-39.pyc
Ðазад
a _�h]1 � @ s d Z ddlZddlZddlZddlmZmZ ddlmZm Z ddl mZ ddlm Z mZmZmZ ddlZejr�ddlmZmZmZmZ ed�Zg d �ZG d d� de�ZG dd � d e�Zee deejf dd�dd�ZG dd� dee �ZG dd� dee �ZG dd� de�Z G dd� de�Z!dS )a� Asynchronous queues for coroutines. These classes are very similar to those provided in the standard library's `asyncio package <https://docs.python.org/3/library/asyncio-queue.html>`_. .. warning:: Unlike the standard library's `queue` module, the classes defined here are *not* thread-safe. To use these queues from another thread, use `.IOLoop.add_callback` to transfer control to the `.IOLoop` thread before calling any queue methods. � N)�gen�ioloop)�Future�"future_set_result_unless_cancelled)�Event)�Union�TypeVar�Generic� Awaitable)�Deque�Tuple�List�Any�_T)�Queue� PriorityQueue� LifoQueue� QueueFull� QueueEmptyc @ s e Zd ZdZdS )r z:Raised by `.Queue.get_nowait` when the queue has no items.N��__name__� __module__�__qualname__�__doc__� r r �~/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tornado/queues.pyr / s r c @ s e Zd ZdZdS )r zBRaised by `.Queue.put_nowait` when a queue is at its maximum size.Nr r r r r r 5 s r )�future�timeout�returnc sD |r@d d�� fdd�}t j�� ���||��� ���fdd�� d S )N�r c s � � � s� �t�� � d S �N)�doneZ set_exceptionr �TimeoutErrorr )r r r � on_timeout@ s z _set_timeout.<locals>.on_timeoutc s � � ��S r )Zremove_timeout)�_)�io_loop�timeout_handler r �<lambda>F � z_set_timeout.<locals>.<lambda>)r ZIOLoop�currentZadd_timeoutZadd_done_callback)r r r# r )r r% r&