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
|
|
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python