Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zmq/sugar/__pycache__/tracker.cpython-39.pyc
Ðазад
a a�h� � @ sz d Z ddlZzddlmZ W n" eefy> ddlmZ Y n0 ddlmZ ddl m Z G dd� de�Ze� Z dd gZdS ) z(Tracker for zero-copy messages with 0MQ.� N)�_Event)�Event)�NotDone)�Framec @ s6 e Zd ZdZdZdZdd� Zedd� �Zd dd �Z dS )�MessageTrackera� MessageTracker(*towatch) A class for tracking if 0MQ is done using one or more messages. When you send a 0MQ message, it is not sent immediately. The 0MQ IO thread sends the message at some later time. Often you want to know when 0MQ has actually sent the message though. This is complicated by the fact that a single 0MQ message can be sent multiple times using different sockets. This class allows you to track all of the 0MQ usages of a message. Parameters ---------- towatch : Event, MessageTracker, Message instances. This objects to track. This class can track the low-level Events used by the Message class, other MessageTrackers or actual Messages. Nc G s� t � | _t � | _|D ]l}t|t�r0| j�|� qt|t�rH| j�|� qt|t�rp|js`t d��| j�|j� qt dt|� ��qdS )a~ MessageTracker(*towatch) Create a message tracker to track a set of mesages. Parameters ---------- *towatch : tuple of Event, MessageTracker, Message instances. This list of objects to track. This class can track the low-level Events used by the Message class, other MessageTrackers or actual Messages. zNot a tracked messagez(Require Events or Message Frames, not %sN)�set�events�peers� isinstancer �addr r �tracker� ValueError� TypeError�type)�selfZtowatch�obj� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zmq/sugar/tracker.py�__init__'