get_context_busy_watcher


Description:

[ Version ( since = "1.24" ) ]
public unowned Object get_context_busy_watcher ()

Returns a Object that stays alive as long as there are pending requests in the DBusConnection.

Such requests keep the MainContext alive, and thus you may want to keep iterating the context as long until a weak reference indicates that this object is gone. This is useful because even when you destroy the instance right away (and all the internally pending requests get cancelled), any pending call requests will still invoke the result on the MainContext. Hence, this allows you to know how long you must iterate the context to know that all remains are cleaned up.

Parameters:

this

the SecretAgentOld instance

Returns:

a Object that you may register a weak pointer to know that the MainContext is still kept busy by this.