Viewing File: /opt/alt/python38/lib64/python3.8/site-packages/aiohttp/__pycache__/signals.cpython-38.pyc

U

'â7`Tã@s$ddlmZdZGdd„deƒZdS)é)Ú
FrozenList)ÚSignalcs4eZdZdZdZ‡fdd„Zdd„Zdd„Z‡ZS)	rz¼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.
    )Ú_ownercstƒ ¡||_dS)N)ÚsuperÚ__init__r)ÚselfÚowner©Ú	__class__©úB/opt/alt/python38/lib64/python3.8/site-packages/aiohttp/signals.pyrs
zSignal.__init__cCsd |j|jt|ƒ¡S)Nz"<Signal owner={}, frozen={}, {!r}>)ÚformatrÚfrozenÚlist)rrrrÚ__repr__s
ÿzSignal.__repr__cÏs,|jstdƒ‚|D]}|||ŽIdHqdS)z9
        Sends data to all registered receivers.
        zCannot send non-frozen signal.N)rÚRuntimeError)rÚargsÚkwargsZreceiverrrrÚsendszSignal.send)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__rrrÚ
__classcell__rrr	rrs
rN)Zaiohttp.frozenlistrÚ__all__rrrrrÚ<module>s
Back to Directory File Manager