OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
aiosignal
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:36:16 AM
rwxr-xr-x
📄
__init__.py
869 bytes
10/16/2021 03:23:53 PM
rw-r--r--
📄
__init__.pyi
311 bytes
10/16/2021 03:23:53 PM
rw-r--r--
📁
__pycache__
-
02/16/2024 08:51:49 PM
rwxr-xr-x
📄
py.typed
0 bytes
10/16/2021 03:23:53 PM
rw-r--r--
Editing: __init__.py
Close
from frozenlist import FrozenList __version__ = "1.2.0a0" __all__ = ("Signal",) class Signal(FrozenList): """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. """ __slots__ = ("_owner",) def __init__(self, owner): super().__init__() self._owner = owner def __repr__(self): return "<Signal owner={}, frozen={}, {!r}>".format( self._owner, self.frozen, list(self) ) async def send(self, *args, **kwargs): """ Sends data to all registered receivers. """ if not self.frozen: raise RuntimeError("Cannot send non-frozen signal.") for receiver in self: await receiver(*args, **kwargs) # type: ignore