Signal
class¶
saffier.Signal
¶
Signal()
Base class for all Saffier signals.
Creates a new signal.
Source code in saffier/core/signals/signal.py
25 26 27 28 29 |
|
connect
¶
connect(receiver)
Connects a given receiver to the the signal.
PARAMETER | DESCRIPTION |
---|---|
receiver |
TYPE:
|
Source code in saffier/core/signals/signal.py
31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
disconnect
¶
disconnect(receiver)
Removes the receiver from the signal.
PARAMETER | DESCRIPTION |
---|---|
receiver |
TYPE:
|
Source code in saffier/core/signals/signal.py
45 46 47 48 49 50 51 |
|
send
async
¶
send(sender, **kwargs)
Sends the notification to all the receivers.
PARAMETER | DESCRIPTION |
---|---|
sender |
TYPE:
|
**kwargs |
TYPE:
|
Source code in saffier/core/signals/signal.py
53 54 55 56 57 58 |
|