ok
Direktori : /opt/alt/python38/lib64/python3.8/site-packages/aiohttp/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/site-packages/aiohttp/__pycache__/signals.cpython-38.pyc |
U '�7`T � @ s$ d dl mZ dZG dd� de�ZdS )� )� FrozenList)�Signalc s4 e Zd ZdZdZ� fdd�Zdd� Zdd� Z� ZS ) r z�Coroutine-based signal implementation. To connect a callback to a signal, use any list method. Signals are fired using the send() coroutine, which takes named arguments. )�_ownerc s t � �� || _d S )N)�super�__init__r )�self�owner�� __class__� �B/opt/alt/python38/lib64/python3.8/site-packages/aiohttp/signals.pyr s zSignal.__init__c C s d� | j| jt| ��S )Nz"<Signal owner={}, frozen={}, {!r}>)�formatr �frozen�list)r r r r �__repr__ s �zSignal.__repr__c � s, | j std��| D ]}|||�I dH qdS )z9 Sends data to all registered receivers. zCannot send non-frozen signal.N)r �RuntimeError)r �args�kwargsZreceiverr r r �send s zSignal.send) �__name__� __module__�__qualname__�__doc__� __slots__r r r � __classcell__r r r r r s r N)Zaiohttp.frozenlistr �__all__r r r r r �<module> s