DBusConnection.signalUnsubscribe

void signalUnsubscribe(uint subscriptionId)

Unsubscribes from signals.

Note that there may still be D-Bus traffic to process (relating to this signal subscription) in the current thread-default #GMainContext after this function has returned. You should continue to iterate the #GMainContext until the #GDestroyNotify function passed to [gio.dbus_connection.DBusConnection.signalSubscribe] is called, in order to avoid memory leaks through callbacks queued on the #GMainContext after it’s stopped being iterated. Alternatively, any idle source with a priority lower than [glib.types.PRIORITY_DEFAULT] that was scheduled after unsubscription, also indicates that all resources of this subscription are released.

Parameters

subscriptionIda subscription id obtained from [gio.dbus_connection.DBusConnection.signalSubscribe]