EventSignal Class
Clients can connect to the event signal to receive events, or disconnect from the event signal to stop receiving events.
Constructor for internal use.
- Inheritance
-
builtins.objectEventSignal
Constructor
EventSignal(obj, connection_changed_callback)
Parameters
Name | Description |
---|---|
obj
Required
|
|
connection_changed_callback
Required
|
|
Methods
connect |
Connects given callback function to the event signal, to be invoked when the event is signalled. |
disconnect_all |
Disconnects all registered callbacks. |
is_connected | |
signal |
connect
Connects given callback function to the event signal, to be invoked when the event is signalled.
connect(callback: Callable)
Parameters
Name | Description |
---|---|
callback
Required
|
|
disconnect_all
Disconnects all registered callbacks.
disconnect_all()
is_connected
is_connected() -> bool
signal
signal(payload)
Parameters
Name | Description |
---|---|
payload
Required
|
|
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure SDK for Python