wait_for_connected_sync


Description:

[ Version ( since = "3.16" ) ]
public bool wait_for_connected_sync (uint32 timeout_seconds, Cancellable? cancellable = null) throws Error

Synchronously waits until the this is connected (according to ESource::connection-status property), but not longer than timeout_seconds.

Note: This also calls retrieve_properties_sync on success, to have up-to-date property values on the client side, without a delay due to property change notifcations delivery through D-Bus.

Parameters:

this

an Client

timeout_seconds

a timeout for the wait, in seconds

cancellable

a Cancellable; or null

Returns:

true if successful, false otherwise.




2022 vala-language.org